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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.17.1




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux