diff mbox series

[2/3] media: atmel: atmel-isi: properly initialize pad_cfg

Message ID 1575036609-11381-2-git-send-email-eugen.hristev@microchip.com (mailing list archive)
State New, archived
Headers show
Series [1/3] media: atmel: atmel-isi: add support for mono sensors, GRAY and Y16 | expand

Commit Message

Eugen Hristev Nov. 29, 2019, 2:10 p.m. UTC
From: Eugen Hristev <eugen.hristev@microchip.com>

In try_fmt, properly initialize the pad_cfg variable to zeros.
This can be used by various calls from the subdev, so it's better
to have it initialized.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 drivers/media/platform/atmel/atmel-isi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/media/platform/atmel/atmel-isi.c b/drivers/media/platform/atmel/atmel-isi.c
index 35c1f1a..59d4c9f 100644
--- a/drivers/media/platform/atmel/atmel-isi.c
+++ b/drivers/media/platform/atmel/atmel-isi.c
@@ -560,7 +560,7 @@  static int isi_try_fmt(struct atmel_isi *isi, struct v4l2_format *f,
 {
 	const struct isi_format *isi_fmt;
 	struct v4l2_pix_format *pixfmt = &f->fmt.pix;
-	struct v4l2_subdev_pad_config pad_cfg;
+	struct v4l2_subdev_pad_config pad_cfg = {0};
 	struct v4l2_subdev_format format = {
 		.which = V4L2_SUBDEV_FORMAT_TRY,
 	};