RE: drm/radeon/dpm: fix uninitialized read from stack in kv_dpm_late_enable

2014-01-31 Thread Deucher, Alexander
> -Original Message- > From: Dave Jones [mailto:da...@redhat.com] > Sent: Thursday, January 30, 2014 9:18 PM > To: Linux Kernel Mailing List > Cc: Deucher, Alexander > Subject: drm/radeon/dpm: fix uninitialized read from stack in > kv_dpm_late_enable > > If we t

drm/radeon/dpm: fix uninitialized read from stack in kv_dpm_late_enable

2014-01-30 Thread Dave Jones
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 diff --git a/drivers/gpu/drm/radeon/kv_dpm.c b/drivers/gpu/drm/radeon/kv_dpm.c index b6e01d5d2cce..351db361239d 100