]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: rcar-vin: Do not set file->private_data
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Sun, 10 Aug 2025 01:29:59 +0000 (04:29 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 13 Aug 2025 06:33:32 +0000 (08:33 +0200)
commit78b2c8a6cd2fed89ad98213558531a7db52a0eea
tree33d3556d0bcf3641087c899decbc83b729a487b3
parentbbe4debfaa6a16f11064d5c40ef6d468dad4398d
media: rcar-vin: Do not set file->private_data

The R-Car VIN driver sets file->private_data to the driver-specific
structure, but the following call to v4l2_fh_open() overwrites it
with a pointer to the just allocated v4l2_fh.

Remove the mis-leading assignment in the driver.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c