diff options
| author | Aric Cyr <[email protected]> | 2018-10-10 23:02:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-11-05 19:21:35 +0000 |
| commit | 69133b89359120e741dff3e09dcfdc08ff954445 (patch) | |
| tree | 29e992f62be6907a76250a32384b12fb9ade17bc /drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | |
| parent | drm/amd/display: remove interlace scaling adjustment (diff) | |
| download | kernel-69133b89359120e741dff3e09dcfdc08ff954445.tar.gz kernel-69133b89359120e741dff3e09dcfdc08ff954445.zip | |
drm/amd/display: Fix up coverity issues
[Why]
Coverity found various high-impact issues that need resolving.
[How]
Fix some buffer overruns and uninitialized variables.
Signed-off-by: Aric Cyr <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Leo Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios/bios_parser.c')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c index 0e1dc1b1a48d..c2ab026aee91 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c @@ -2030,7 +2030,7 @@ static uint32_t get_src_obj_list(struct bios_parser *bp, ATOM_OBJECT *object, static struct device_id device_type_from_device_id(uint16_t device_id) { - struct device_id result_device_id; + struct device_id result_device_id = {0}; switch (device_id) { case ATOM_DEVICE_LCD1_SUPPORT: |
