[patch] nouveau: error paths leak in nvc0_graph_construct_context()

2011-06-25 Thread Ben Skeggs
On Sat, 2011-06-25 at 08:54 +0300, Dan Carpenter wrote: > Two of these error paths returned without freeing "ctx". Applied to nouveau git, thanks! Ben. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.c > b/drivers/gpu/drm/nouveau/nvc0_graph.c > index 39e920

[patch] nouveau: error paths leak in nvc0_graph_construct_context()

2011-06-25 Thread Dan Carpenter
Two of these error paths returned without freeing "ctx". Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.c b/drivers/gpu/drm/nouveau/nvc0_graph.c index 39e9208..5aa3f9e 100644 --- a/drivers/gpu/drm/nouveau/nvc0_graph.c +++ b/drivers/gpu/drm/nouveau/nvc0_graph.c @@ -

Re: [patch] nouveau: error paths leak in nvc0_graph_construct_context()

2011-06-25 Thread Ben Skeggs
On Sat, 2011-06-25 at 08:54 +0300, Dan Carpenter wrote: > Two of these error paths returned without freeing "ctx". Applied to nouveau git, thanks! Ben. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.c > b/drivers/gpu/drm/nouveau/nvc0_graph.c > index 39e920

[patch] nouveau: error paths leak in nvc0_graph_construct_context()

2011-06-24 Thread Dan Carpenter
Two of these error paths returned without freeing "ctx". Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.c b/drivers/gpu/drm/nouveau/nvc0_graph.c index 39e9208..5aa3f9e 100644 --- a/drivers/gpu/drm/nouveau/nvc0_graph.c +++ b/drivers/gpu/drm/nouveau/nvc0_graph.c @@ -