Re: [PATCH] usb: gadget: function fs req_match endpoint address fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023-10-10 01:00, Greg KH wrote:
On Mon, Oct 09, 2023 at 03:06:56PM -0700, linux-dev@xxxxxxxxxxxx wrote:
From: Dean Anderson <linux-dev@xxxxxxxxxxxx>

Fixes f_fs.c handling USB_RECIP_ENDPOINT request types incorrectly for
endpoints not belonging to it. f_fs.c needs to distinguish between IN
and OUT endpoints, not just the endpoint number. Otherwise, f_fs may
handle endpoints belonging to other functions. This occurs in the
gadget/composite.c composite_setup function in the req_match callback.

Signed-off-by: Dean Anderson <linux-dev@xxxxxxxxxxxx>

---
 drivers/usb/gadget/function/f_fs.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

What commit id does this fix?

8a749fd1a8720d4619c91c8b6e7528c0a355c0aa

"git log"

commit df91c8a9c05098f06ad2dd5bf0d9342e80a9eb22 (HEAD -> v6.6-rc4)
Author: Dean A <dean@xxxxxxxxxxxx>
Date:   Mon Oct 9 15:04:19 2023 -0700

    usb: gadget: function fs req_match endpoint address fix

commit 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa (tag: v6.6-rc4)
Author: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Date:   Sun Oct 1 14:15:13 2023 -0700

    Linux 6.6-rc4





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux