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
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