linux/drivers/isdn/capi
Arnd Bergmann af109a2cf6 isdn: kcapi: avoid uninitialized data
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>
2017-03-28 17:59:33 -07:00
..
capi.c CAPI: use correct structure type name in sizeof 2014-07-30 19:13:40 -07:00
capidrv.c isdn/capi: Use setup_timer 2015-05-31 21:36:37 -07:00
capidrv.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
capilib.c isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
capiutil.c isdn/capi: correct argument types of command_2_index 2014-12-10 15:06:10 -05:00
kcapi_proc.c isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
kcapi.c isdn: kcapi: avoid uninitialized data 2017-03-28 17:59:33 -07:00
kcapi.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
Kconfig isdn/capi: fix (middleware) device nodes 2014-06-04 23:13:41 -07:00
Makefile