diff options
| author | Dafna Hirschfeld <[email protected]> | 2020-02-19 16:25:54 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-03-05 22:44:06 +0100 |
| commit | 6990570f7e0a6078e11b9c5dc13f4b6e3f49a398 (patch) | |
| tree | 89f942b4b09d868553716eac88ab7fa7735745bb /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 403265137f7a513a010a526367e24abe0c6126e0 (diff) | |
media: v4l2-core: fix a use-after-free bug of sd->devnode
sd->devnode is released after calling
v4l2_subdev_release. Therefore it should be set
to NULL so that the subdev won't hold a pointer
to a released object. This fixes a reference
after free bug in function
v4l2_device_unregister_subdev
Fixes: 0e43734d4c46e ("media: v4l2-subdev: add release() internal op")
Cc: [email protected]
Signed-off-by: Dafna Hirschfeld <[email protected]>
Reviewed-by: Ezequiel Garcia <[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