[patch] Staging: bcm2835-audio: fix an uninitialized return value

Arnd Bergmann arnd at arndb.de
Tue Feb 7 06:01:23 PST 2017


On Tue, Feb 7, 2017 at 2:17 PM, Dan Carpenter <dan.carpenter at oracle.com> wrote:
> "ret" isn't necessarily initialized on the success path.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
>

The patch seems correct, but do you have any idea why gcc-7 didn't
warn about this?
I assume that you found it with smatch, and nobody else did.

     Arnd



More information about the linux-rpi-kernel mailing list