[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKwoAfpB-n8m7btodbH0zzTuEGiEQbDsC0aYuOfk8MSb+CFgLg@mail.gmail.com>
Date: Sun, 15 Dec 2024 12:41:03 +0100
From: Karol P <karprzy7@...il.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: paul@...pouillou.net, tudor.ambarus@...aro.org, Chris.Wulff@...mp.com,
david.sands@...mp.com, viro@...iv.linux.org.uk, m.grzeschik@...gutronix.de,
peter@...sgaard.com, linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
skhan@...uxfoundation.org
Subject: Re: [PATCH] usb: gadget: f_fs: remove unused values and add immediate returns
On Thu, 7 Nov 2024 at 06:15, Greg KH <gregkh@...uxfoundation.org> wrote:
>
> On Wed, Nov 06, 2024 at 07:30:32PM +0100, Karol Przybylski wrote:
> > In case of faulty copy_from_user call inside ffs_epfile_ioctl, error code is
> > saved in a variable. However, this variable is later overwritten in every possible
> > path, which overshadows initial assignment.
> >
> > This patch fixes it by returning the error code immediately and exiting the function.
> >
> > Error discovered in coverity scan - CID 1583682
> >
> > Signed-off-by: Karol Przybylski <karprzy7@...il.com>
> > ---
> > drivers/usb/gadget/function/f_fs.c | 9 +++------
> > 1 file changed, 3 insertions(+), 6 deletions(-)
>
> What commit id does this fix?
7b07a2a7ca02a, usb: gadget: functionfs: Add DMABUF import interface
>
> How was this change tested?
I compiled the kernel and ran it on my machine.
Are there other ways to reliably test such change?
>
> thanks,
>
> greg k-h
Powered by blists - more mailing lists