From: Xiaoke Wang
kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it to
prevent potential wrong memory access.
Besides, since mdp5_plane_reset() is void type, so we should better
set `plane-state` to NULL after rel
From: Xiaoke Wang
kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it.
Besides, to properly handle the error, another check is added for the
return of omap_irq_wait_init().
Signed-off-by: Xiaoke Wang
---
drivers/g
From: Xiaoke Wang
kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it to
prevent potential wrong memory access.
Signed-off-by: Xiaoke Wang
---
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 ++
1 file chang
From: Xiaoke Wang
kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it to
prevent potential wrong memory access.
Signed-off-by: Xiaoke Wang
---
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 17 ++---
1 f
From: Xiaoke Wang
kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it to
prevent potential wrong memory access.
Signed-off-by: Xiaoke Wang
---
drivers/gpu/drm/arm/malidp_mw.c | 5 -
1 file changed, 4 insertion
From: Xiaoke Wang
kstrdup() is a memory allocation function which can return NULL when
some internaly memory errors happen. It is better to check the return
value of it to prevent further wrong memory access.
Signed-off-by: Xiaoke Wang
---
drivers/gpu/drm/i915/selftests/i915_selftest.c | 3 +++
From: Xiaoke Wang
kstrdup() is a memory allocation function which can return NULL when
some internaly memory errors happen. It is better to check the return
value of it to prevent further wrong memory access.
Signed-off-by: Xiaoke Wang
---
drivers/dma-buf/selftest.c | 3 +++
1 file changed, 3
From: Xiaoke Wang
kstrdup() is a memory allocation function which can return NULL when
some internal memory errors happen. It is better to check the return
value of it to catch the error in time during the setup of viafb.
Signed-off-by: Xiaoke Wang
---
drivers/video/fbdev/via/viafbdev.c | 10 +