diff options
author | Kefeng Wang <[email protected]> | 2023-05-05 17:06:54 +0800 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2023-05-16 11:19:29 +0100 |
commit | cddb536a73ef2c82ce04059dc61c65e85a355561 (patch) | |
tree | c0034e1f852e9b1741e181029d18ab568c8dc744 /arch/powerpc/lib/code-patching.c | |
parent | 14130211be5366a91ec07c3284c183b75d8fba17 (diff) |
irqchip/mbigen: Unify the error handling in mbigen_of_create_domain()
Dan Carpenter reported that commit fea087fc291b "irqchip/mbigen: move
to use bus_get_dev_root()" leads to the following Smatch static checker
warning:
drivers/irqchip/irq-mbigen.c:258 mbigen_of_create_domain()
error: potentially dereferencing uninitialized 'child'.
It should not cause a problem on real hardware, but better to fix the
warning, let's move the bus_get_dev_root() out of the loop, and unify
the error handling to silence it.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Kefeng Wang <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions