diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-06 20:36:17 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-07-19 09:34:25 +0200 |
commit | 6675e871ca4dab14e849298767d34c2722f3ee1e (patch) | |
tree | ff41db8f06cfb37f63ffa1a193185b3a1fe7273c /fs/reiserfs/tail_conversion.c | |
parent | 19a2374068b557ed1a19c68ebaef5f1a161e2973 (diff) |
media: ti-vpe: cal: Unregister video device before cleanup
In cal_remove(), unregister the video devices as the first operation,
before cleaning up the V4L2 objects, to avoid use-after-free. This isn't
a complete solution yet, as video nodes can be kept open across
unregistration.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'fs/reiserfs/tail_conversion.c')
0 files changed, 0 insertions, 0 deletions