Commit 455be83
usb: gadget: f_tcm: Fix Get/SetInterface return value
commit 3b99708 upstream.
Check to make sure that the GetInterface and SetInterface are for valid
interface. Return proper alternate setting number on GetInterface.
Fixes: 0b8b1a1 ("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>1 parent 4652446 commit 455be83
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2051 | 2051 | | |
2052 | 2052 | | |
2053 | 2053 | | |
2054 | | - | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
2055 | 2060 | | |
2056 | | - | |
| 2061 | + | |
2057 | 2062 | | |
2058 | 2063 | | |
2059 | 2064 | | |
| |||
2063 | 2068 | | |
2064 | 2069 | | |
2065 | 2070 | | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2066 | 2074 | | |
2067 | 2075 | | |
2068 | 2076 | | |
| |||
0 commit comments