Skip to contentSkip to conversation

Patch "usb/gadget: fix gadgetfs aio support." has been added to the 4.7-stable tree

PATCH [email protected] 1 participant 1 message Sep 2, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

usb/gadget: fix gadgetfs aio support.

to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
usb-gadget-fix-gadgetfs-aio-support.patch
and it can be found in the queue-4.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 327b21da884fe1a29f733e41792ddd53e4a30379 Mon Sep 17 00:00:00 2001

From: Mathieu Laurendeau <[email protected]>
Date: Fri, 15 Jul 2016 14:58:41 +0200
Subject: usb/gadget: fix gadgetfs aio support.

From: Mathieu Laurendeau <[email protected]>

commit 327b21da884fe1a29f733e41792ddd53e4a30379 upstream.

Fix io submissions failing with ENODEV.

Fixes 7fe3976e0f3a ("gadget: switch ep_io_operations to ->read_iter/->write_iter")
---
 drivers/usb/gadget/legacy/inode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/legacy/inode.c +1 -1
@@ -542,7 +542,7 @@ static ssize_t ep_aio(struct kiocb *iocb
 	 */
 	spin_lock_irq(&epdata->dev->lock);
 	value = -ENODEV;
-	if (unlikely(epdata->ep))
+	if (unlikely(epdata->ep == NULL))
 		goto fail;
 
 	req = usb_ep_alloc_request(epdata->ep, GFP_ATOMIC);

Patches currently in stable-queue which might be from [email protected] are

queue-4.7/usb-gadget-fix-gadgetfs-aio-support.patch