Re: [PATCH] kalmia: avoid potential uninitialized variable use

2016-10-27 Thread David Miller
From: Arnd Bergmann Date: Mon, 24 Oct 2016 17:54:18 +0200 > The kalmia_send_init_packet() returns zero or a negative return > code, but gcc has no way of knowing that there cannot be a > positive return code, so it determines that copying the ethernet > address at the end of kalmia_bind() will ac

[PATCH] kalmia: avoid potential uninitialized variable use

2016-10-24 Thread Arnd Bergmann
The kalmia_send_init_packet() returns zero or a negative return code, but gcc has no way of knowing that there cannot be a positive return code, so it determines that copying the ethernet address at the end of kalmia_bind() will access uninitialized data: drivers/net/usb/kalmia.c: In function ‘kal