aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-04-04 11:33:27 +0200
committerBartosz Golaszewski <[email protected]>2024-04-04 16:57:52 +0200
commitb3b95964590a3d756d69ea8604c856de805479ad (patch)
tree88b36ba30c246b89b963dc7d150ca1d00cfd697f /tools/perf/scripts/python/export-to-postgresql.py
parente8acd2d209a387f2358c2c83fe894b444db9ea46 (diff)
gpio: cdev: check for NULL labels when sanitizing them for irqs
We need to take into account that a line's consumer label may be NULL and not try to kstrdup() it in that case but rather pass the NULL pointer up the stack to the interrupt request function. To that end: let make_irq_label() return NULL as a valid return value and use ERR_PTR() instead to signal an allocation failure to callers. Cc: [email protected] Fixes: b34490879baa ("gpio: cdev: sanitize the label before requesting the interrupt") Reported-by: Linux Kernel Functional Testing <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Bartosz Golaszewski <[email protected]> Tested-by: Anders Roxell <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions