drm/amd/display: dal_ddc_i2c_payloads_create can fail causing panic
authorAric Cyr <aric.cyr@amd.com>
Thu, 30 Jan 2020 19:46:53 +0000 (14:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:02:22 +0000 (11:02 -0500)
commit6a6c4a4d459ecacc9013c45dcbf2bc9747fdbdbd
tree3c9e13bf2c05f376ace7be9c7eac312d3075457b
parentf739ce5768eddbe573c8b30d8ac109de67c57d29
drm/amd/display: dal_ddc_i2c_payloads_create can fail causing panic

[Why]
Since the i2c payload allocation can fail need to check return codes

[How]
Clean up i2c payload allocations and check for errors

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Joshua Aberback <Joshua.Aberback@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c