Re: [PATCH v2] drm/amdgpu: fix null pointer deref in firmware header printing

2019-09-06 Thread Wang, Kevin(Yang)
Reviewed-by: Kevin Wang Best Regards, Kevin From: Yuan, Xiaojie Sent: Friday, September 6, 2019 4:04 PM To: amd-gfx@lists.freedesktop.org Cc: Wang, Kevin(Yang) ; Yuan, Xiaojie Subject: [PATCH v2] drm/amdgpu: fix null pointer deref in firmware header printing

[PATCH v2] drm/amdgpu: fix null pointer deref in firmware header printing

2019-09-06 Thread Yuan, Xiaojie
v2: declare as (struct common_firmware_header *) type because struct xxx_firmware_header inherits from it When CE's ucode_id(8) is used to get sdma_hdr, we will be accessing an unallocated amdgpu_firmware_info instance. This issue appears on rhel7.7 with gcc 4.8.5. Newer compilers might have