[PATCH] nouveau: Don't leak in nva3_pm_clock_pre()

2011-07-04 Thread Ben Skeggs
On Sun, Jul 3, 2011 at 7:58 PM, Jesper Juhl wrote: > If nva3_calc_pll() returns less than 0 in > drivers/gpu/drm/nouveau/nva3_pm.c:nva3_pm_clock_pre() we'll return > without freeing 'pll'. > This patch should fix the leak. Firstly, thank you for the patch. This issue however, no longer exists in

[PATCH] nouveau: Don't leak in nva3_pm_clock_pre()

2011-07-03 Thread Jesper Juhl
If nva3_calc_pll() returns less than 0 in drivers/gpu/drm/nouveau/nva3_pm.c:nva3_pm_clock_pre() we'll return without freeing 'pll'. This patch should fix the leak. Signed-off-by: Jesper Juhl --- drivers/gpu/drm/nouveau/nva3_pm.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)

[PATCH] nouveau: Don't leak in nva3_pm_clock_pre()

2011-07-03 Thread Jesper Juhl
If nva3_calc_pll() returns less than 0 in drivers/gpu/drm/nouveau/nva3_pm.c:nva3_pm_clock_pre() we'll return without freeing 'pll'. This patch should fix the leak. Signed-off-by: Jesper Juhl j...@chaosbits.net --- drivers/gpu/drm/nouveau/nva3_pm.c |4 +++- 1 files changed, 3 insertions(+), 1