drm/radeon/si: make sure mc ucode is loaded before checking the size
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 16 Apr 2014 13:42:22 +0000 (09:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:14 +0000 (10:28 -0700)
commit078e8e804177a7ce50f51ecc636f7d33e924b72d
treec8e534b35e863a3b45e8372b8593e8ada3228ac7
parent3302087d6669a36c71ae57643ac36ecc8345c6ee
drm/radeon/si: make sure mc ucode is loaded before checking the size

commit 8c79bae6a30f606b7a4e17c994bc5f72f8fdaf11 upstream.

Avoid a possible segfault.

Noticed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/si.c