diff options
| author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | 2024-12-11 00:31:55 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:58:14 +0100 |
| commit | b69805e311fb1ac1b703f4b197b61597e64cb5ec (patch) | |
| tree | 3cd2d0602d3dd623fdd2934cc872508671ff9482 /scripts | |
| parent | a1fd89c09385d628dee5904cd48137b308828a34 (diff) | |
| download | linux-b69805e311fb1ac1b703f4b197b61597e64cb5ec.tar.gz linux-b69805e311fb1ac1b703f4b197b61597e64cb5ec.tar.bz2 linux-b69805e311fb1ac1b703f4b197b61597e64cb5ec.zip | |
usb: gadget: f_tcm: Fix Get/SetInterface return value
commit 3b997089903b909684114aca6f79d683e5c64a0e upstream.
Check to make sure that the GetInterface and SetInterface are for valid
interface. Return proper alternate setting number on GetInterface.
Fixes: 0b8b1a1fede0 ("usb: gadget: f_tcm: Provide support to get alternate setting in tcm function")
Cc: stable@vger.kernel.org
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/ffd91b4640945ea4d3b4f4091cf1abbdbd9cf4fc.1733876548.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
