diff options
| author | Jai Luthra <jai.luthra@ideasonboard.com> | 2025-12-22 13:45:25 +0530 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2026-03-04 07:21:10 -0500 |
| commit | fb69e4842f5b463ff5f121d2ac7746014e3477ea (patch) | |
| tree | cd01a7893fd670351fceb718231668b51f9f2d3a /tools/lib/python | |
| parent | 8ca7df18e7a58a0e5b0ed9eaaa34e16fc5cb9680 (diff) | |
media: i2c: ov5647: Initialize subdev before controls
[ Upstream commit eee13cbccacb6d0a3120c126b8544030905b069d ]
In ov5647_init_controls() we call v4l2_get_subdevdata, but it is
initialized by v4l2_i2c_subdev_init() in the probe, which currently
happens after init_controls(). This can result in a segfault if the
error condition is hit, and we try to access i2c_client, so fix the
order.
Fixes: 4974c2f19fd8 ("media: ov5647: Support gain, exposure and AWB controls")
Cc: stable@vger.kernel.org
Suggested-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
