[PATCH v2 2/3] drm/msm/dsi: correct DSI id bounds check during registration

2018-01-16 Thread Lloyd Atkinson
Check DSI instance id argument against the proper boundary size to protect against invalid configuration of the DSI id. Signed-off-by: Lloyd Atkinson --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH v2 1/3] drm/msm/dsi: check for failure on retrieving pll in dsi manager

2018-01-16 Thread Lloyd Atkinson
. Signed-off-by: Lloyd Atkinson --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 6 +++--- drivers/gpu/drm/msm/dsi/pll/dsi_pll.c | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm

[PATCH v2 3/3] drm/msm/dsi: check msm_dsi and dsi pointers before use

2018-01-16 Thread Lloyd Atkinson
Move null checks of pointer arguments to the beginning of the modeset init function since they are referenced immediately instead of after they have already been used. Signed-off-by: Lloyd Atkinson --- drivers/gpu/drm/msm/dsi/dsi.c | 22 ++ 1 file changed, 10 insertions

[PATCH v2 0/3] drm/msm/dsi: improve pointer validation checks

2018-01-16 Thread Lloyd Atkinson
This series improves a few pointer validation checks around the drm/msm/dsi driver. v2 incoporates feedback on patch 1/3 and patch 3/3. Lloyd Atkinson (3): drm/msm/dsi: check for failure on retrieving pll in dsi manager drm/msm/dsi: correct DSI id bounds check during registration drm/msm

Re: [PATCH 3/3] drm/msm/dsi: check msm_dsi and dsi pointers before use

2018-01-15 Thread Lloyd Atkinson
On 1/15/2018 9:48 AM, Rob Clark wrote: > On Fri, Jan 12, 2018 at 3:55 PM, Lloyd Atkinson > wrote: >> Move null checks of pointer arguments to the beginning of the >> modeset init function since they are referenced immediately >> instead of after they have already been u

[PATCH 3/3] drm/msm/dsi: check msm_dsi and dsi pointers before use

2018-01-12 Thread Lloyd Atkinson
Move null checks of pointer arguments to the beginning of the modeset init function since they are referenced immediately instead of after they have already been used. Signed-off-by: Lloyd Atkinson --- drivers/gpu/drm/msm/dsi/dsi.c | 22 ++ 1 file changed, 10 insertions

[PATCH 2/3] drm/msm/dsi: correct DSI id bounds check during registration

2018-01-12 Thread Lloyd Atkinson
Check DSI instance id argument against the proper boundary size to protect against invalid configuration of the DSI id. Signed-off-by: Lloyd Atkinson --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH 1/3] drm/msm/dsi: check src_pll for null in dsi manager

2018-01-12 Thread Lloyd Atkinson
Add checks for failure after retrieving the src_pll, since it may fail. This prevents an invalid pointer dereference later in msm_dsi_pll_get_clk_provider. Signed-off-by: Lloyd Atkinson --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu

[PATCH 0/3] drm/msm/dsi: improve pointer validation checks

2018-01-12 Thread Lloyd Atkinson
This series improves a few pointer validation checks around the drm/msm/dsi driver. Lloyd Atkinson (3): drm/msm/dsi: check src_pll for null in dsi manager drm/msm/dsi: correct DSI id bounds check during registration drm/msm/dsi: check msm_dsi and dsi pointers before use drivers/gpu/drm

HDMI Aspect Ratio

2017-10-18 Thread Lloyd Atkinson
t is the reason to clear the vrefresh within drm_display_mode_from_vic_index? Thanks, Lloyd Atkinson -- QUALCOMM Canada, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ___ dri-