mbox series

[0/2] drm: Add a check to prevent NULL pointer dereference

Message ID 20241025073408.27481-1-zhangzekun11@huawei.com (mailing list archive)
Headers show
Series drm: Add a check to prevent NULL pointer dereference | expand

Message

zhangzekun (A) Oct. 25, 2024, 7:34 a.m. UTC
drm_mode_duplicate() could return NULL due to lack of memory, which
could cause NULL pointer dereference. Add a check to prevent it.

Zhang Zekun (2):
  drm/i2c/ch7006: Add a check to prevent NULL pointer dereference
  drm/panel: himax-hx83102: Add a check to prevent NULL pointer
    dereference

 drivers/gpu/drm/i2c/ch7006_drv.c            | 8 ++++++--
 drivers/gpu/drm/panel/panel-himax-hx83102.c | 2 ++
 2 files changed, 8 insertions(+), 2 deletions(-)