mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 10:50:53 +07:00
14834540ca
The function sh_sir_probe() return 0 for success and negative value for most of its internal tests failures. There are two exceptions that are error cases going to err_mem_*:. For this two cases, the function abort its success execution path, but returns non negative value, making it dificult for a caller function to notice the error. This patch fixes the error cases that do not return negative values. This was found by Coccinelle, but the code change was made by hand. This patch is not robot generated. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
act200l-sir.c | ||
actisys-sir.c | ||
ali-ircc.c | ||
ali-ircc.h | ||
au1k_ir.c | ||
bfin_sir.c | ||
bfin_sir.h | ||
donauboe.c | ||
donauboe.h | ||
ep7211-sir.c | ||
esi-sir.c | ||
girbil-sir.c | ||
irda-usb.c | ||
irda-usb.h | ||
irtty-sir.c | ||
irtty-sir.h | ||
Kconfig | ||
kingsun-sir.c | ||
ks959-sir.c | ||
ksdazzle-sir.c | ||
litelink-sir.c | ||
ma600-sir.c | ||
Makefile | ||
mcp2120-sir.c | ||
mcs7780.c | ||
mcs7780.h | ||
nsc-ircc.c | ||
nsc-ircc.h | ||
old_belkin-sir.c | ||
pxaficp_ir.c | ||
sa1100_ir.c | ||
sh_irda.c | ||
sh_sir.c | ||
sir_dev.c | ||
sir_dongle.c | ||
sir-dev.h | ||
smsc-ircc2.c | ||
smsc-ircc2.h | ||
smsc-sio.h | ||
stir4200.c | ||
tekram-sir.c | ||
toim3232-sir.c | ||
via-ircc.c | ||
via-ircc.h | ||
vlsi_ir.c | ||
vlsi_ir.h | ||
w83977af_ir.c | ||
w83977af_ir.h | ||
w83977af.h |