Re: [PATCH] s5p-jpeg: hangle error condition in s5p_jpeg_probe

From: Jacek Anaszewski
Date: Fri Nov 13 2020 - 16:35:27 EST


Hi Evgeiny,

Thank you for the patch.

There is a typo in the subject: s/hangle/handle/

Otherwise:

Acked-by: Jacek Anaszewski <jacek.anaszewski@xxxxxxxxx>


On 11/13/20 5:06 PM, Baskov Evgeiny wrote:
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.


--
Best regards,
Jacek Anaszewski