aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2021-10-12 14:36:24 +0800
committerJonathan Cameron <[email protected]>2021-10-17 16:51:53 +0100
commitfe6f45f6ba22d625a8500cbad0237c60dd3117ee (patch)
tree7813eb09762179bc9ef625a8db20d53ada507b0f /tools/perf/scripts/python/arm-cs-trace-disasm.py
parent604faf9a2ecd1addcc0c10a47e5aaef3c4d4fd6b (diff)
iio: core: check return value when calling dev_set_name()
I got a null-ptr-deref report when doing fault injection test: BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:strlen+0x0/0x20 Call Trace: start_creating+0x199/0x2f0 debugfs_create_dir+0x25/0x430 __iio_device_register+0x4da/0x1b40 [industrialio] __devm_iio_device_register+0x22/0x80 [industrialio] max1027_probe+0x639/0x860 [max1027] spi_probe+0x183/0x210 really_probe+0x285/0xc30 If dev_set_name() fails, the dev_name() is null, check the return value of dev_set_name() to avoid the null-ptr-deref. Reported-by: Hulk Robot <[email protected]> Fixes: e553f182d55b ("staging: iio: core: Introduce debugfs support...") Signed-off-by: Yang Yingliang <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions