diff options
| author | Cai Huoqing <caihuoqing@baidu.com> | 2021-09-01 14:46:49 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 10:07:58 +0200 |
| commit | 538314dbfc8adbe8af64a13c9f14e907a0a887fb (patch) | |
| tree | 7911f7dac09ec6aa41bc81dfdfd50ba23f7ea6fd /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | aea54c13488575ccd1b32dde2e057ea36eed123d (diff) | |
| download | linux-538314dbfc8adbe8af64a13c9f14e907a0a887fb.tar.gz linux-538314dbfc8adbe8af64a13c9f14e907a0a887fb.zip | |
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 <caihuoqing@baidu.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
