[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK8P3a0suV4at56Uu6N9Y8urumUnqLw8ZRuLAqp9FOK_OvJw7A@mail.gmail.com>
Date: Thu, 16 Nov 2017 12:38:20 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Mauro Carvalho Chehab <mchehab@...nel.org>,
Shuah Khan <shuah@...nel.org>,
Linux Media Mailing List <linux-media@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] media: dvb_frontend: Fix uninitialized error in dvb_frontend_handle_ioctl()
On Thu, Nov 16, 2017 at 11:51 AM, Geert Uytterhoeven
<geert@...ux-m68k.org> wrote:
> With gcc-4.1.2:
>
> drivers/media/dvb-core/dvb_frontend.c: In function ‘dvb_frontend_handle_ioctl’:
> drivers/media/dvb-core/dvb_frontend.c:2110: warning: ‘err’ may be used uninitialized in this function
>
> Indeed, there are 13 cases where err is used initialized if one of the
> dvb_frontend_ops is not implemented.
>
> Preinitialize err to -EOPNOTSUPP like before to fix this.
>
> Fixes: d73dcf0cdb95a47f ("media: dvb_frontend: cleanup ioctl handling logic")
> Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
Good catch!
This one shows up on x86 allmdoconfig with gcc-4.5 or older but not gcc-4.6.
Acked-by: Arnd Bergmann <arnd@...db.de>
Powered by blists - more mailing lists