summaryrefslogtreecommitdiffstats
path: root/net/smc/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-03-28 12:11:07 +0200
committerDavid S. Miller <davem@davemloft.net>2017-03-28 17:59:33 -0700
commitaf109a2cf6a9a6271fa420ae2d64d72d86c92b7d (patch)
tree541012599a12ad8d7eff411a1b567cbd316b07fd /net/smc/Makefile
parentf9ba3501d50317697811ff3c48f623f08d616fc8 (diff)
downloadlinux-stable-af109a2cf6a9a6271fa420ae2d64d72d86c92b7d.tar.gz
linux-stable-af109a2cf6a9a6271fa420ae2d64d72d86c92b7d.tar.bz2
linux-stable-af109a2cf6a9a6271fa420ae2d64d72d86c92b7d.zip
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>
Diffstat (limited to 'net/smc/Makefile')
0 files changed, 0 insertions, 0 deletions