Commit 1b73938
usb: gadget: u_audio: Fix race condition use of controls after free during gadget unbind.
Hang on to the control IDs instead of pointers since those are correctly
handled with locks.
Fixes: 8fe9a03 ("usb: gadget: u_audio: Rate ctl notifies about current srate (0=stopped)")
Fixes: c565ad0 ("usb: gadget: u_audio: Support multiple sampling rates")
Fixes: 02de698 ("usb: gadget: u_audio: add bi-directional volume and mute support")
Signed-off-by: Chris Wulff <[email protected]>
Link: https://lore.kernel.org/stable/CO1PR17MB5419C2BF44D400E4E620C1ADE1172%40CO1PR17MB5419.namprd17.prod.outlook.com
Link: https://lore.kernel.org/r/CO1PR17MB5419C2BF44D400E4E620C1ADE1172@CO1PR17MB5419.namprd17.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent c5b324b commit 1b73938
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
501 | 500 | | |
502 | 501 | | |
503 | 502 | | |
504 | | - | |
| 503 | + | |
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
| |||
807 | 806 | | |
808 | 807 | | |
809 | 808 | | |
810 | | - | |
| 809 | + | |
811 | 810 | | |
812 | 811 | | |
813 | 812 | | |
| |||
856 | 855 | | |
857 | 856 | | |
858 | 857 | | |
859 | | - | |
| 858 | + | |
860 | 859 | | |
861 | 860 | | |
862 | 861 | | |
| |||
1331 | 1330 | | |
1332 | 1331 | | |
1333 | 1332 | | |
1334 | | - | |
| 1333 | + | |
1335 | 1334 | | |
1336 | 1335 | | |
1337 | 1336 | | |
| |||
1359 | 1358 | | |
1360 | 1359 | | |
1361 | 1360 | | |
1362 | | - | |
| 1361 | + | |
1363 | 1362 | | |
1364 | 1363 | | |
1365 | 1364 | | |
| |||
1383 | 1382 | | |
1384 | 1383 | | |
1385 | 1384 | | |
1386 | | - | |
| 1385 | + | |
1387 | 1386 | | |
1388 | 1387 | | |
1389 | 1388 | | |
| |||
0 commit comments