drm/radeon/ci: make sure mc ucode is loaded before checking the size
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 16 Apr 2014 13:42:23 +0000 (09:42 -0400)
committerChristian König <christian.koenig@amd.com>
Thu, 17 Apr 2014 12:14:43 +0000 (14:14 +0200)
commitbcddee29b0b87af3aeda953840f97b356b24dc5e
treed06ada61b523d46d77d3f48c4bfafb711c1adbaf
parent8c79bae6a30f606b7a4e17c994bc5f72f8fdaf11
drm/radeon/ci: make sure mc ucode is loaded before checking the size

Avoid a possible segfault.

Noticed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/cik.c