aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2018-08-27 09:58:16 +0200
committerHans Verkuil <[email protected]>2018-08-31 10:20:37 +0200
commit5ce70c799ac22c142061c71aaeae518f04283472 (patch)
treeb818dcb56ef6b5945433178671c1a32e072e3478 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent09c4b49457434fa74749ad6194ef28464d9f5df9 (diff)
drm_dp_cec: check that aux has a transfer function
If aux->transfer == NULL, then just return without doing anything. In that case the function is likely called for a non-(e)DP connector. This never happened for the i915 driver, but the nouveau and amdgpu drivers need this check. The alternative would be to add this check in those drivers before every drm_dp_cec call, but it makes sense to check it in the drm_dp_cec functions to prevent a kernel oops. Signed-off-by: Hans Verkuil <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Acked-by: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions