linux/arch/mips/sgi-ip27
Thomas Bogendoerfer e4952b0c2c
MIPS: SGI-IP27: Fix use of unchecked pointer in shutdown_bridge_irq
smatch complaint:

    arch/mips/sgi-ip27/ip27-irq.c:123 shutdown_bridge_irq()
    warn: variable dereferenced before check 'hd' (see line 121)

Fix it by removing local variable and use hd->pin directly.

Fixes: 69a07a41d9 ("MIPS: SGI-IP27: rework HUB interrupts")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
2019-03-28 11:37:41 -07:00
..
ip27-berr.c MIPS: Add missing include files 2017-03-08 10:38:06 +01:00
ip27-console.c mips: unify prom_putchar() declarations 2018-07-17 09:40:17 -07:00
ip27-hubio.c MIPS: SGI-IP27: get rid of volatile and hubreg_t 2019-02-19 12:46:02 -08:00
ip27-init.c MIPS: SGI-IP27: rework HUB interrupts 2019-02-19 12:46:03 -08:00
ip27-irq.c MIPS: SGI-IP27: Fix use of unchecked pointer in shutdown_bridge_irq 2019-03-28 11:37:41 -07:00
ip27-klconfig.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ip27-klnuma.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ip27-memory.c MIPS: SGI-IP27: use pr_info/pr_emerg and pr_cont to fix output 2019-02-19 12:46:02 -08:00
ip27-nmi.c MIPS: SGI-IP27: use pr_info/pr_emerg and pr_cont to fix output 2019-02-19 12:46:02 -08:00
ip27-reset.c MIPS: IP27: Use __noreturn instead of open coded attributes in declarations. 2015-01-13 16:04:28 +01:00
ip27-smp.c MIPS: SGI-IP27: do boot CPU init later 2019-02-19 12:46:03 -08:00
ip27-timer.c MIPS: SGI-IP27: rework HUB interrupts 2019-02-19 12:46:03 -08:00
ip27-xtalk.c MIPS: SGI-IP27: do xtalk scanning later 2019-02-19 12:46:02 -08:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile MIPS: SGI-IP27: rework HUB interrupts 2019-02-19 12:46:03 -08:00
Platform MIPS: IP27: Migrate to new Platform file 2010-08-05 13:25:47 +01:00
TODO Fix common misspellings 2011-03-31 11:26:23 -03:00