Re: [PATCH] drm/imx: imx-ldb: Check for null pointer after calling kmemdup

2022-03-29 Thread Philipp Zabel
On Mi, 2022-01-05 at 15:47 +0800, Jiasheng Jiang wrote: > As the possible failure of the allocation, kmemdup() may return NULL > pointer. > Therefore, it should be better to check the return value of kmemdup() > and return error if fails. > > Fixes: dc80d7038883 ("drm/imx-ldb: Add support to

[PATCH] drm/imx: imx-ldb: Check for null pointer after calling kmemdup

2022-01-04 Thread Jiasheng Jiang
As the possible failure of the allocation, kmemdup() may return NULL pointer. Therefore, it should be better to check the return value of kmemdup() and return error if fails. Fixes: dc80d7038883 ("drm/imx-ldb: Add support to drm-bridge") Signed-off-by: Jiasheng Jiang ---