diff options
author | Jiasheng Jiang <[email protected]> | 2022-01-05 15:47:29 +0800 |
---|---|---|
committer | Philipp Zabel <[email protected]> | 2022-04-04 09:37:41 +0200 |
commit | 8027a9ad9b3568c5eb49c968ad6c97f279d76730 (patch) | |
tree | a31477129dea76d890550fb5d2f2edde947701cc /drivers/gpu/drm/imx/parallel-display.c | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) |
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