kernel-fxtec-pro1x/sound/isa
Colin Ian King 8f093a2152 ALSA: cs4236: fix error return comparison of an unsigned integer
commit d60229d84846a8399257006af9c5444599f64361 upstream.

The return from pnp_irq is an unsigned integer type resource_size_t
and hence the error check for a positive non-error code is always
going to be true.  A check for a non-failure return from pnp_irq
should in fact be for (resource_size_t)-1 rather than >= 0.

Addresses-Coverity: ("Unsigned compared against 0")
Fixes: a9824c868a ("[ALSA] Add CS4232 PnP BIOS support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20191122131354.58042-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-09 10:19:02 +01:00
..
ad1816a
ad1848
cs423x
es1688
galaxy
gus
msnd
opti9xx
sb
wavefront
wss
adlib.c
als100.c
azt2320.c
cmi8328.c
cmi8330.c
es18xx.c
Kconfig
Makefile
opl3sa2.c
sc6000.c
sscape.c