aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/parallel-display.c
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-01-05 07:47:29 +0000
committerPhilipp Zabel <[email protected]>2022-04-04 07:37:41 +0000
commit8027a9ad9b3568c5eb49c968ad6c97f279d76730 (patch)
treea31477129dea76d890550fb5d2f2edde947701cc /drivers/gpu/drm/imx/parallel-display.c
parentLinux 5.18-rc1 (diff)
downloadkernel-8027a9ad9b3568c5eb49c968ad6c97f279d76730.tar.gz
kernel-8027a9ad9b3568c5eb49c968ad6c97f279d76730.zip
drm/imx: imx-ldb: Check for null pointer after calling kmemdup
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 <[email protected]> Signed-off-by: Philipp Zabel <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/imx/parallel-display.c')
0 files changed, 0 insertions, 0 deletions