Skip to content

Commit d6ad1c9

Browse files
committed
media: atomisp: fix call to g_frame_interval
The media core has now a check if fi->pad is bigger than zero or bigger than sd->entity.num_pads, if the media controller is defined. This causes a call to g_frame_interval to return -EINVAL. Fix it by first cleaning up the struct. Tested-by: Andy Shevchenko <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent e2c5794 commit d6ad1c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/media/atomisp/pci/atomisp_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct atomisp_acc_pipe *atomisp_to_acc_pipe(struct video_device *dev)
109109

110110
static unsigned short atomisp_get_sensor_fps(struct atomisp_sub_device *asd)
111111
{
112-
struct v4l2_subdev_frame_interval fi;
112+
struct v4l2_subdev_frame_interval fi = { 0 };
113113
struct atomisp_device *isp = asd->isp;
114114

115115
unsigned short fps = 0;

0 commit comments

Comments
 (0)