[PATCH] drm: fix NULL pointer access by wrong ioctl

2014-06-18 Thread y...@samsung.com
From: Zhaowei Yuan If user uses wrong ioctl command with _IOC_NONE and argument size greater than 0, it can cause NULL pointer access from memset of line 463. If _IOC_NONE, don't memset to 0 for kdata. Signed-off-by: Zhaowei Yuan --- drivers/gpu/drm/drm_drv.c |3 ++- 1 file changed, 2 inse

[PATCH V6] drm: edid: add support for E-DDC

2012-08-30 Thread y...@samsung.com
From: Shirish S This patch adds support in probing 4 block edid data, for E-DDC. This is the first test case in CTS, for HDMI compliance. Changes from V1: 1. Data type of offset adress updated to unsigned short 2. Updated the buf feild of msg[0] Changes from V2: Add switch for DDC and E-DDC Ch

[PATCH V6] drm: edid: add support for E-DDC

2012-08-30 Thread y...@samsung.com
From: Shirish S This patch adds support in probing 4 block edid data, for E-DDC. This is the first test case in CTS, for HDMI compliance. Changes from V1: 1. Data type of offset adress updated to unsigned short 2. Updated the buf feild of msg[0] Changes from V2: Add switch for DDC and E-DDC Ch

[PATCH v6] drm: edid: add support for E-DDC

2012-08-30 Thread y...@samsung.com
From: Shirish S The current logic for probing ddc is limited to 2 blocks (256 bytes), this patch adds support for the 4 block (512) data. To do this, a single 8-bit segment index is passed to the display via the I2C address 30h. Data from the selected segment is then immediately read via the reg

[PATCH] drm: edid: add support for E-DDC

2012-08-30 Thread y...@samsung.com
From: Shirish S The current logic for probing ddc is limited to 2 blocks (256 bytes), this patch adds support for the 4 block (512) data. To do this, a single 8-bit segment index is passed to the display via the I2C address 30h. Data from the selected segment is then immediately read via the reg