mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
net/9p/usbg: also disable endpoints on p9_usbg_close
The close function has to fully reverse the state change of 9p_create
(mount) and the potential call of set_alt(1). This includes to ensure
that the usage of the endpoints is not active any more.
Fixes: a3be076dc1 ("net/9p/usbg: Add new usb gadget function transport")
Cc: stable@vger.kernel.org
Signed-off-by: Michael Grzeschik <mgr@kernel.org>
Message-ID: <20260922-usb9pfsfixes-v1-1-9d8dcc52904c@kernel.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
This commit is contained in:
parent
6f401e3509
commit
f81cdb9164
|
|
@ -473,6 +473,8 @@ static void p9_usbg_close(struct p9_client *client)
|
|||
mutex_lock(&usb9pfs_lock);
|
||||
dev->inuse = false;
|
||||
mutex_unlock(&usb9pfs_lock);
|
||||
|
||||
disable_usb9pfs(usb9pfs);
|
||||
}
|
||||
|
||||
static int p9_usbg_request(struct p9_client *client, struct p9_req_t *p9_req)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user