aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-03-25 10:02:42 +0100
committerBartosz Golaszewski <[email protected]>2024-03-26 12:43:35 +0100
commitb34490879baa847d16fc529c8ea6e6d34f004b38 (patch)
tree31e2f3cbc1b7aed86d719f508c786b0f4cde9654 /scripts/gdb
parent4cece764965020c22cff7665b18a012006359095 (diff)
gpio: cdev: sanitize the label before requesting the interrupt
When an interrupt is requested, a procfs directory is created under "/proc/irq/<irqnum>/<label>" where <label> is the string passed to one of the request_irq() variants. What follows is that the string must not contain the "/" character or the procfs mkdir operation will fail. We don't have such constraints for GPIO consumer labels which are used verbatim as interrupt labels for GPIO irqs. We must therefore sanitize the consumer string before requesting the interrupt. Let's replace all "/" with ":". Cc: [email protected] Reported-by: Stefan Wahren <[email protected]> Closes: https://lore.kernel.org/linux-gpio/[email protected]/ Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Kent Gibson <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions