linux-stable/drivers/misc
Miaoqian Lin 6b689129bf misc: atmel-ssc: Fix IRQ check in ssc_probe
[ Upstream commit 1c245358ce ]

platform_get_irq() returns negative error number instead 0 on failure.
And the doc of platform_get_irq() provides a usage example:

    int irq = platform_get_irq(pdev, 0);
    if (irq < 0)
        return irq;

Fix the check of return value to catch errors correctly.

Fixes: eb1f293060 ("Driver for the Atmel on-chip SSC on AT32AP and AT91")
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220601123026.7119-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-25 11:46:44 +02:00
..
altera-stapl
c2port
cb710 cb710: avoid NULL pointer subtraction 2021-10-20 10:42:03 +02:00
cxl cxl: Fix kobject memleak 2020-08-21 09:48:08 +02:00
echo misc: echo: Remove unnecessary parentheses and simplify check for zero 2020-04-24 08:00:51 +02:00
eeprom eeprom: idt_89hpesx: Put fwnode in matching case during ->probe() 2021-07-20 16:17:40 +02:00
genwqe
ibmasm misc/libmasm/module: Fix two use after free in ibmasm_init_one 2021-07-20 16:17:48 +02:00
lis3lv02d platform/x86: hp_accel: Avoid invoking _INI to speed up resume 2021-06-03 08:36:20 +02:00
mei mei: request autosuspend after sending rx flow control 2021-06-03 08:36:16 +02:00
mic misc: vop: add round_up(x,4) for vring_size to avoid kernel panic 2020-10-29 09:07:17 +01:00
sgi-gru
sgi-xp
ti-st
vmw_vmci VMCI: fix NULL pointer dereference when unmapping queue pair 2021-09-22 11:45:25 +02:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
aspeed-lpc-ctrl.c soc: aspeed: lpc-ctrl: Fix boundary check for mmap 2021-09-22 11:45:24 +02:00
aspeed-lpc-snoop.c
atmel-ssc.c misc: atmel-ssc: Fix IRQ check in ssc_probe 2022-06-25 11:46:44 +02:00
atmel_tclib.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fsa9480.c
hmc6352.c
hpilo.c
hpilo.h
ics932s401.c
ioc4.c
isl29003.c
isl29020.c
Kconfig
kgdbts.c kgdbts: fix return value of __setup handler 2022-04-20 09:08:20 +02:00
lattice-ecp3-config.c misc: lattice-ecp3-config: Fix task hung when firmware load failed 2022-01-27 09:00:53 +01:00
lkdtm.h
lkdtm_bugs.c
lkdtm_core.c
lkdtm_heap.c
lkdtm_perms.c
lkdtm_refcount.c
lkdtm_rodata.c
lkdtm_usercopy.c lkdtm/usercopy: Expand size of "out of frame" object 2022-06-14 16:53:59 +02:00
Makefile lkdtm: Fix content of section containing lkdtm_rodata_do_nothing() 2022-02-08 18:16:25 +01:00
pch_phub.c
pci_endpoint_test.c
phantom.c
pti.c
qcom-coincell.c
spear13xx_pcie_gadget.c
sram-exec.c
sram.c
sram.h
ti_dac7512.c
tifm_7xx1.c
tifm_core.c
tsl2550.c
vexpress-syscfg.c
vmw_balloon.c