Baskov Evgeniy 0862d95b43 media: s5p-jpeg: handle error condition in s5p_jpeg_probe
If an error happens in jpeg_get_drv_data(), i.e. match fails,
jpeg->variant field is NULL, so we cannot access it.

Consider device probe failed if jpeg->variant is NULL.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Baskov Evgeniy <baskov@ispras.ru>
Acked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-12-03 07:45:49 +01:00
..
2020-11-22 11:52:10 -08:00
2020-11-27 10:44:59 -08:00
2020-10-30 14:51:01 -07:00
2020-11-18 16:42:07 -08:00
2020-11-12 13:59:04 -07:00
2020-11-15 10:15:17 -08:00
2020-11-20 10:23:49 -08:00
2020-10-15 14:43:29 -07:00
2020-10-12 13:26:49 -07:00
2020-11-29 10:18:53 -08:00
2020-11-11 09:53:09 +01:00
2020-11-16 15:02:33 -08:00
2020-10-13 12:12:44 -07:00
2020-11-27 10:41:19 -08:00
2020-10-16 12:21:15 -07:00
2020-10-24 10:39:22 -07:00
2020-10-24 10:39:22 -07:00
2020-09-28 12:17:36 +02:00
2020-10-14 15:56:58 -07:00
2020-10-25 11:12:31 -07:00
2020-09-25 06:12:15 +02:00
2020-11-10 15:35:41 +01:00
2020-10-27 19:23:04 +01:00
2020-10-24 10:33:08 -07:00
2020-10-24 10:33:08 -07:00
2020-10-22 12:56:33 -07:00
2020-10-24 10:39:22 -07:00
2020-10-22 12:58:21 -07:00
2020-10-21 11:22:08 -07:00
2020-11-27 14:06:23 -08:00
2020-11-26 22:07:22 +01:00
2020-10-01 22:59:55 +02:00
2020-11-20 16:24:28 -08:00
2020-11-27 14:48:03 -08:00
2020-11-16 14:58:23 -08:00
2020-11-23 15:29:03 -08:00
2020-10-23 11:00:57 -07:00
2020-10-24 10:33:08 -07:00