forked from Minki/linux
e5d9cfc6f5
Field usrcnt is unsigned so it cannot be lesser than zero. The patch fixes the check, moves it to the beginning of the function and changes return value to -EIO in case of usercnt error. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
rcar | ||
dma-sh7760.c | ||
fsi.c | ||
hac.c | ||
Kconfig | ||
Makefile | ||
migor.c | ||
sh7760-ac97.c | ||
siu_dai.c | ||
siu_pcm.c | ||
siu.h | ||
ssi.c |