Re: [PATCH, net] isdn: kcapi: avoid uninitialized data

2017-03-28 Thread David Miller
From: Arnd Bergmann Date: Tue, 28 Mar 2017 12:11:07 +0200 > 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.ca

[PATCH, net] isdn: kcapi: avoid uninitialized data

2017-03-28 Thread Arnd Bergmann
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-unini