Repository navigation
Commit e87cb47
[media] imon: fix usbdev leaks
imon_probe() does three usb_get_dev(), but there is no any
usb_put_dev() in the driver.
The patch adds usb_put_dev() to error paths, to imon_disconnect()
and to imon_probe() as far as usbdev is not saved anywhere.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>1 parent 3bacc10 commit e87cb47
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2283 | 2283 | | |
2284 | 2284 | | |
2285 | 2285 | | |
| 2286 | + | |
2286 | 2287 | | |
2287 | 2288 | | |
2288 | 2289 | | |
| |||
2355 | 2356 | | |
2356 | 2357 | | |
2357 | 2358 | | |
| 2359 | + | |
2358 | 2360 | | |
2359 | 2361 | | |
2360 | 2362 | | |
| |||
2468 | 2470 | | |
2469 | 2471 | | |
2470 | 2472 | | |
| 2473 | + | |
2471 | 2474 | | |
2472 | 2475 | | |
2473 | 2476 | | |
2474 | 2477 | | |
2475 | 2478 | | |
| 2479 | + | |
2476 | 2480 | | |
2477 | 2481 | | |
2478 | 2482 | | |
| |||
2512 | 2516 | | |
2513 | 2517 | | |
2514 | 2518 | | |
| 2519 | + | |
2515 | 2520 | | |
2516 | 2521 | | |
2517 | 2522 | | |
| |||
2523 | 2528 | | |
2524 | 2529 | | |
2525 | 2530 | | |
| 2531 | + | |
2526 | 2532 | | |
2527 | 2533 | | |
2528 | 2534 | | |
| |||
0 commit comments