[PATCH] drm/radeon/dpm: ensure ret is not returning uninitialized value (original) (raw)
Deucher, Alexander Alexander.Deucher at amd.com
Thu Feb 6 09:24:55 PST 2014
- Previous message: [PATCH] drm/radeon/dpm: ensure ret is not returning uninitialized value
- Next message: [PATCH 0/2] Update copyright notices for Renesas DRM drivers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----Original Message----- From: Colin King [mailto:colin.king at canonical.com] Sent: Thursday, February 06, 2014 12:18 PM To: David Airlie; Deucher, Alexander; dri-devel at lists.freedesktop.org Subject: [PATCH] drm/radeon/dpm: ensure ret is not returning uninitialized value
From: Colin Ian King <colin.king at canonical.com> ret is not being initialized, so there is a possibility that a garbage value is being returned by kvdpmlateenable(). Initialize ret to 0 to fix this. Signed-off-by: Colin Ian King <colin.king at canonical.com>
Thanks. Already have the same fix from Dave Jones applied to my fixes tree.
Alex
--- drivers/gpu/drm/radeon/kvdpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/radeon/kvdpm.c b/drivers/gpu/drm/radeon/kvdpm.c index b6e01d5..351db36 100644 --- a/drivers/gpu/drm/radeon/kvdpm.c +++ b/drivers/gpu/drm/radeon/kvdpm.c @@ -1223,7 +1223,7 @@ int kvdpmenable(struct radeondevice *rdev) int kvdpmlateenable(struct radeondevice *rdev) { - int ret; + int ret = 0; if (rdev->irq.installed && r600isinternalthermalsensor(rdev->pm.intthermaltype)) { -- 1.9.rc1
- Previous message: [PATCH] drm/radeon/dpm: ensure ret is not returning uninitialized value
- Next message: [PATCH 0/2] Update copyright notices for Renesas DRM drivers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]