Commit 7a3d76a
USB: usblp: return error when setting unsupported protocol
Fix the regression introduced by commit d8c6edf ("USB:
usblp: don't call usb_set_interface if there's a single alt"),
which causes that unsupported protocols can also be set via
ioctl when the num_altsetting of the device is 1.
Move the check for protocol support to the earlier stage.
Fixes: d8c6edf ("USB: usblp: don't call usb_set_interface if there's a single alt")
Cc: stable <[email protected]>
Signed-off-by: Jun Yan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 057bd54 commit 7a3d76a
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1340 | 1344 | | |
1341 | 1345 | | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | 1346 | | |
1346 | 1347 | | |
1347 | 1348 | | |
| |||
0 commit comments