[PATCH v3 02/12] media: verisilicon: Check the match data in hantro_probe()
Nicolas Dufresne
nicolas.dufresne at collabora.com
Fri Nov 13 09:29:01 PST 2026
Le vendredi 13 novembre 2026 à 16:40 +0000, Arun Iyengar via B4 Relay a écrit :
> From: Arun Iyengar <aiyengar1990 at gmail.com>
>
> A device bound through driver_override may have no OF match, and
> hantro_probe() then dereferences a NULL match. Use
> device_get_match_data() and fail with -ENODEV without match data.
>
> Fixes: 775fec69008d ("media: add Rockchip VPU JPEG encoder driver")
> Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne at collabora.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20261113/9ac57f24/attachment-0001.sig>
More information about the Linux-rockchip
mailing list