media: s5p-jpeg: Handle parsing error in s5p_jpeg_parse_hdr()
authorThierry Escande <thierry.escande@collabora.com>
Fri, 30 Jun 2017 14:15:42 +0000 (10:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 12:30:04 +0000 (08:30 -0400)
commitfe8a57b618fe128481b8603169a694712a73fbc9
tree9c184f9c1338527c5a9d139cc7f576cf6e6d7abf
parentfa3cb90bdfc64122f50ce9c1a6090cb720361463
media: s5p-jpeg: Handle parsing error in s5p_jpeg_parse_hdr()

This patch modifies the s5p_jpeg_parse_hdr() function so it only
modifies the passed s5p_jpeg_q_data structure if the jpeg header parsing
is successful.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c