diff options
| author | Cai Huoqing <[email protected]> | 2021-09-01 14:46:49 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-09-30 10:07:58 +0200 |
| commit | 538314dbfc8adbe8af64a13c9f14e907a0a887fb (patch) | |
| tree | 7911f7dac09ec6aa41bc81dfdfd50ba23f7ea6fd /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | aea54c13488575ccd1b32dde2e057ea36eed123d (diff) | |
media: usb: stkwebcam: Update the reference count of the usb device structure
Use usb_get_dev() to increment the reference count of the usb device
structure in order to avoid releasing the structure while it is still in
use. And use usb_put_dev() to decrement the reference count and thus,
when it will be equal to 0 the structure will be released.
Signed-off-by: Cai Huoqing <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions