Skip to content

Commit

Permalink
media: ov5648: Don't pack controls struct
Browse files Browse the repository at this point in the history
[ Upstream commit edd4fbf ]

Don't pack the driver specific struct containing control pointers. This
lead to potential alignment issues when working with the pointers.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: e43ccb0 ("media: i2c: Add support for the OV5648 image sensor")
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Sakari Ailus authored and gregkh committed Apr 8, 2022
1 parent e745922 commit 5b3b0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/ov5648.c
Expand Up @@ -639,7 +639,7 @@ struct ov5648_ctrls {
struct v4l2_ctrl *pixel_rate;

struct v4l2_ctrl_handler handler;
} __packed;
};

struct ov5648_sensor {
struct device *dev;
Expand Down

0 comments on commit 5b3b0b7

Please sign in to comment.