aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-region.h
diff options
context:
space:
mode:
authorZeng Heng <[email protected]>2022-11-10 16:20:56 +0800
committerLinus Walleij <[email protected]>2022-11-10 12:26:18 +0100
commit91d5c5060ee24fe8da88cd585bb43b843d2f0dce (patch)
tree441274ce394bad800e65f9c6ad74f329d97ba2d9 /include/linux/fpga/fpga-region.h
parentfed74d75277da865da9ba334d3f5d5e3e327971d (diff)
pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map
Here is the BUG report by KASAN about null pointer dereference: BUG: KASAN: null-ptr-deref in strcmp+0x2e/0x50 Read of size 1 at addr 0000000000000000 by task python3/2640 Call Trace: strcmp __of_find_property of_find_property pinctrl_dt_to_map kasprintf() would return NULL pointer when kmalloc() fail to allocate. So directly return ENOMEM, if kasprintf() return NULL pointer. Fixes: 57291ce295c0 ("pinctrl: core device tree mapping table parsing support") Signed-off-by: Zeng Heng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-region.h')
0 files changed, 0 insertions, 0 deletions