Re: [PATCH v3 02/12] media: verisilicon: Check the match data in hantro_probe()
From: Nicolas Dufresne
Date: Fri Nov 13 2026 - 12:53:58 EST
Le vendredi 13 novembre 2026 à 16:40 +0000, Arun Iyengar via B4 Relay a écrit :
> From: Arun Iyengar <aiyengar1990@xxxxxxxxx>
>
> 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@xxxxxxxxx>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>
Attachment:
signature.asc
Description: This is a digitally signed message part