[media] s5p-jpeg: return error immediately after get_byte fails
authorJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 11 Jul 2014 15:19:43 +0000 (12:19 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 22:16:03 +0000 (19:16 -0300)
commita35f60031976d8b9930a2d32ebfdecd82d538066
tree6bc8edb0fe0eb9a64829bb06cb9e64244e1952a2
parent3246fdaa0ac2d936b1838589b76fd5aaff02e46d
[media] s5p-jpeg: return error immediately after get_byte fails

When parsing JPEG header s5p_jpeg_parse_hdr function
should return immediately in case there was an error
while reading a byte.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c