drm/radeon/dpm: fix uninitialized read from stack in kv_dpm_late_enable
authorDave Jones <davej@redhat.com>
Fri, 31 Jan 2014 02:17:30 +0000 (21:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2014 17:22:49 +0000 (12:22 -0500)
commit7c7e867cf0f74c4c79649605b964510041f1a8bf
tree770dff0efe69330c581a909c473beb4665f3239a
parent4dbffb8f21999c2156ddac00186810f1dfd9eb1a
drm/radeon/dpm: fix uninitialized read from stack in kv_dpm_late_enable

If we take the false branch of the if quoted in the diff below, we
end up doing a return ret, without ever having initialized it.

Picked up by coverity.

Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/kv_dpm.c