drm/radeon/si: make sure mc ucode is loaded before checking the size
authorAlex Deucher <[email protected]>
Wed, 16 Apr 2014 13:42:22 +0000 (09:42 -0400)
committerChristian König <[email protected]>
Thu, 17 Apr 2014 12:14:41 +0000 (14:14 +0200)
commit8c79bae6a30f606b7a4e17c994bc5f72f8fdaf11
treea8fad897868c75f5766f69ce427e93d8525386b7
parentf8a2645ecede4eaf90b3d785f2805c8ecb76d43e
drm/radeon/si: make sure mc ucode is loaded before checking the size

Avoid a possible segfault.

Noticed-by: Dan Carpenter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
drivers/gpu/drm/radeon/si.c