linux/drivers/media
Mauro Carvalho Chehab a16e37726c [media] s5p-jpeg: don't return a random width/height
Gcc 7.1 complains about:

drivers/media/platform/s5p-jpeg/jpeg-core.c: In function 's5p_jpeg_parse_hdr.isra.9':
drivers/media/platform/s5p-jpeg/jpeg-core.c:1207:12: warning: 'width' may be used uninitialized in this function [-Wmaybe-uninitialized]
  result->w = width;
  ~~~~~~~~~~^~~~~~~
drivers/media/platform/s5p-jpeg/jpeg-core.c:1208:12: warning: 'height' may be used uninitialized in this function [-Wmaybe-uninitialized]
  result->h = height;
  ~~~~~~~~~~^~~~~~~~

Indeed the code would allow it to return a random value (although
it shouldn't happen, in practice). So, explicitly set both to zero,
just in case.

Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-05-19 07:10:50 -03:00
..
cec [media] cec: improve MEDIA_CEC_RC dependencies 2017-05-18 07:29:09 -03:00
common [media] b2c2: constify nxt200x_config structure 2017-04-17 12:18:18 -03:00
dvb-core [media] media/dvb-core: Race condition when writing to CAM 2017-04-17 17:20:23 -03:00
dvb-frontends [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
firewire [media] firewire: don't break long lines 2016-10-21 10:06:00 -02:00
i2c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
mmc
pci [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
platform [media] s5p-jpeg: don't return a random width/height 2017-05-19 07:10:50 -03:00
radio [media] wl128x: use setup_timer 2017-04-10 14:56:37 -03:00
rc [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
usb [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
v4l2-core [media] vb2: Fix an off by one error in 'vb2_plane_vaddr' 2017-05-18 07:33:04 -03:00
Kconfig [media] cec: Kconfig cleanup 2017-04-19 06:50:52 -03:00
Makefile [media] cec: Kconfig cleanup 2017-04-19 06:50:52 -03:00
media-device.c [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media-entity: only call dev_dbg_obj if mdev is not NULL 2017-04-19 08:15:51 -03:00