aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/machxo2-spi.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2025-08-02 10:59:13 +0000
committerThomas Gleixner <[email protected]>2025-08-05 08:29:24 +0000
commitcb9f6a40382ca7b7a81d6f52285f897b09b5851b (patch)
treefad34abab80873337fb4e786a4430c6cad5a6a28 /drivers/fpga/machxo2-spi.c
parentMerge tag 'i2c-for-6.17-rc1-part2' of git://git.kernel.org/pub/scm/linux/kern... (diff)
downloadkernel-cb9f6a40382ca7b7a81d6f52285f897b09b5851b.tar.gz
kernel-cb9f6a40382ca7b7a81d6f52285f897b09b5851b.zip
irqchip/riscv-imsic: Don't dereference before NULL pointer check
smatch warns about a dereference before check: drivers/irqchip/irq-riscv-imsic-platform.c:317 imsic_irqdomain_init() warn: variable dereferenced before check 'imsic' (see line 311) Cure it by moving the firmware not assignement after the checks. Fixes: 59422904dd98 ("irqchip/riscv-imsic: Convert to msi_create_parent_irq_domain() helper") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ --- drivers/irqchip/irq-riscv-imsic-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions