Re: [PATCH v1 1/1] drm/mediatek: Fix wrong check of nvmem_cell_read

2024-09-26 Thread AngeloGioacchino Del Regno
Il 25/09/24 10:40, Liankun Yang ha scritto: If the len is 0, kernel crash will occur when performing operations. Add the len check conditions to prevent kernel crash. Please fix the commit title: drm/mediatek: mtk_dp: Fix potential KP on 0 bytes nvmem cell read Fixes: f70ac097a2cf ("drm/med

[PATCH v1 1/1] drm/mediatek: Fix wrong check of nvmem_cell_read

2024-09-25 Thread Liankun Yang
If the len is 0, kernel crash will occur when performing operations. Add the len check conditions to prevent kernel crash. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 2 +- 1 file changed, 1 ins