linux/drivers/isdn
Arnd Bergmann ea9e1ca409 isdn: kcapi: avoid uninitialized data
[ Upstream commit af109a2cf6 ]

gcc-7 points out that the AVMB1_ADDCARD ioctl results in an unintialized
value ending up in the cardnr parameter:

drivers/isdn/capi/kcapi.c: In function 'old_capi_manufacturer':
drivers/isdn/capi/kcapi.c:1042:24: error: 'cdef.cardnr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   cparams.cardnr = cdef.cardnr;

This has been broken since before the start of the git history, so
either the value is not used for anything important, or the ioctl
command doesn't get called in practice.

Setting the cardnr to zero avoids the warning and makes sure
we have consistent behavior.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-25 14:22:13 +01:00
..
act2000
capi isdn: kcapi: avoid uninitialized data 2017-12-25 14:22:13 +01:00
divert
gigaset isdn/gigaset: fix NULL-deref at probe 2017-03-26 12:13:19 +02:00
hardware ISDN: eicon: silence misleading array-bounds warning 2017-02-01 08:30:52 +01:00
hisax isdn: Partially revert debug format string usage clean up 2015-11-25 11:49:58 -05:00
hysdn
i4l isdn/i4l: fetch the ppp_write buffer in one shot 2017-10-21 17:09:02 +02:00
icn arch, drivers: don't include <asm/io.h> directly, use <linux/io.h> instead 2015-08-10 23:07:05 -04:00
isdnloop
mISDN Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-10-24 06:54:12 -07:00
pcbit
sc
Kconfig
Makefile