Re: [PATCH 2/2] media: mediatek: vcodec: Handle encoder vsi NULL pointer case

From: AngeloGioacchino Del Regno
Date: Mon Oct 02 2023 - 07:34:11 EST


Il 02/10/23 12:48, AngeloGioacchino Del Regno ha scritto:
Il 26/09/23 12:19, Irui Wang ha scritto:
There will be a kernel null pointer exception if 'vsi' is NULL, check
'vsi' is not NULL before assign it to encoder instance.

Signed-off-by: Irui Wang <irui.wang@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>


Sorry I just noticed that there's no Fixes tag.

This commit needs a Fixes tag, please add one and send a v2.