On Fri, Feb 09, 2018 at 02:25:44PM +0100, Hans Verkuil wrote: > Zero the reserved field of struct media_links_enum. > > Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> > Reported-by: Sakari Ailus <sakari.ai...@linux.intel.com>
Thanks! Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com> > --- > diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c > index afbf23a19e16..7af6fadd206d 100644 > --- a/drivers/media/media-device.c > +++ b/drivers/media/media-device.c > @@ -155,6 +155,8 @@ static long media_device_enum_links(struct media_device > *mdev, > if (entity == NULL) > return -EINVAL; > > + memset(links->reserved, 0, sizeof(links->reserved)); > + > if (links->pads) { > unsigned int p; > -- Sakari Ailus sakari.ai...@linux.intel.com