summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2023-04-02 14:12:59 +0300
committerLee Jones <lee@kernel.org>2023-04-05 18:28:42 +0300
commitc1087c29e96a48e9080377e168d35dcb52fb068b (patch)
tree60f274ac6f9e0e4d2eef65d1ff331864a7ad4a4b /tools/perf/scripts/python/export-to-sqlite.py
parent22dc3789b737fe29d8f54f0d084047aede5550ad (diff)
downloadlinux-c1087c29e96a48e9080377e168d35dcb52fb068b.tar.xz
leds: tca6507: Fix error handling of using fwnode_property_read_string
Commit 96f524105b9c ("leds: tca6507: use fwnode API instead of OF") changed to fwnode API but did not take into account that a missing property "linux,default-trigger" now seems to return an error and as a side effect sets value to -1. This seems to be different from of_get_property() which always returned NULL in any case of error. Neglecting this side-effect leads to [ 11.201965] Unable to handle kernel paging request at virtual address ffffffff when read in the strcmp() of led_trigger_set_default() if there is no led-trigger defined in the DTS. I don't know if this was recently introduced somewhere in the fwnode lib or if the effect was missed in initial testing. Anyways it seems to be a bug to ignore the error return value of an optional value here in the driver. Fixes: 96f524105b9c ("leds: tca6507: use fwnode API instead of OF") Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Acked-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/cbae7617db83113de726fcc423a805ebaa1bfca6.1680433978.git.hns@goldelico.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions