diff options
| author | Kuen-Han Tsai <khtsai@google.com> | 2026-03-20 16:54:45 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-11 14:29:57 +0200 |
| commit | 209decd3f7901df9842b83f2540dc8685e344a07 (patch) | |
| tree | 6a9484fb4c90f11a59bf841d5142dd732d123767 /include/net/aligned_data.h | |
| parent | 23e4851ce348a329d974e84e828155dda9f52122 (diff) | |
usb: gadget: f_rndis: Protect RNDIS options with mutex
commit 8d8c68b1fc06ece60cf43e1306ff0f4ac121547e upstream.
The class/subclass/protocol options are suspectible to race conditions
as they can be accessed concurrently through configfs.
Use existing mutex to protect these options. This issue was identified
during code inspection.
Fixes: 73517cf49bd4 ("usb: gadget: add RNDIS configfs options for class/subclass/protocol")
Cc: stable@vger.kernel.org
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Link: https://patch.msgid.link/20260320-usb-net-lifecycle-v1-2-4886b578161b@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
