aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorCai Huoqing <caihuoqing@baidu.com>2021-09-01 14:46:49 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-09-30 10:07:58 +0200
commit538314dbfc8adbe8af64a13c9f14e907a0a887fb (patch)
tree7911f7dac09ec6aa41bc81dfdfd50ba23f7ea6fd /tools/perf/scripts/python/netdev-times.py
parentmedia: s3c-camif: Remove unused including <linux/version.h> (diff)
downloadlinux-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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions