[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2023062825-oops-unguided-501f@gregkh>
Date: Wed, 28 Jun 2023 20:21:33 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Anastasia Belova <abelova@...ralinux.ru>
Cc: stable@...r.kernel.org, Mauro Carvalho Chehab <mchehab@...nel.org>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
Xiaomeng Tong <xiam0nd.tong@...il.com>,
Tsuchiya Yuto <kitakar@...il.com>, linux-media@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org,
Dan Carpenter <dan.carpenter@...cle.com>,
Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Subject: Re: [PATCH 5.10 1/1] media: atomisp: fix "variable dereferenced
before check 'asd'"
On Tue, Jun 27, 2023 at 01:23:34PM +0300, Anastasia Belova wrote:
> From: Tsuchiya Yuto <kitakar@...il.com>
>
> commit ac56760a8bbb4e654b2fd54e5de79dd5d72f937d upstream.
>
> There are two occurrences where the variable 'asd' is dereferenced
> before check. Fix this issue by using the variable after the check.
>
> Link: https://lore.kernel.org/linux-media/20211122074122.GA6581@kili/
>
> Link: https://lore.kernel.org/linux-media/20211201141904.47231-1-kitakar@gmail.com
> Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
> Signed-off-by: Tsuchiya Yuto <kitakar@...il.com>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
> Signed-off-by: Anastasia Belova <abelova@...ralinux.ru>
> ---
> drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 ++-
> drivers/staging/media/atomisp/pci/atomisp_ioctl.c | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
Now queued up, thanks.
greg k-h
Powered by blists - more mailing lists