* [PATCH] drivers/parport/parport_gsc.c: add missing kfree
@ 2012-04-22 12:44 ` Julia Lawall
0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2012-04-22 12:44 UTC (permalink / raw)
To: linux-kernel; +Cc: kernel-janitors
From: Julia Lawall <Julia.Lawall@lip6.fr>
Free ops as done just below.
Adjust some spacing to please checkpatch.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
drivers/parport/parport_gsc.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c
index 5d6de38..d2dcb27 100644
--- a/drivers/parport/parport_gsc.c
+++ b/drivers/parport/parport_gsc.c
@@ -270,15 +270,16 @@ struct parport *__devinit parport_gsc_probe_port (unsigned long base,
p->physport = p;
if (!parport_SPP_supported (p)) {
/* No port. */
- kfree (priv);
+ kfree(priv);
+ kfree(ops);
return NULL;
}
parport_PS2_supported (p);
if (!(p = parport_register_port(base, PARPORT_IRQ_NONE,
PARPORT_DMA_NONE, ops))) {
- kfree (priv);
- kfree (ops);
+ kfree(priv);
+ kfree(ops);
return NULL;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] drivers/parport/parport_gsc.c: add missing kfree
@ 2012-04-22 12:44 ` Julia Lawall
0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2012-04-22 12:44 UTC (permalink / raw)
To: linux-kernel; +Cc: kernel-janitors
From: Julia Lawall <Julia.Lawall@lip6.fr>
Free ops as done just below.
Adjust some spacing to please checkpatch.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
drivers/parport/parport_gsc.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c
index 5d6de38..d2dcb27 100644
--- a/drivers/parport/parport_gsc.c
+++ b/drivers/parport/parport_gsc.c
@@ -270,15 +270,16 @@ struct parport *__devinit parport_gsc_probe_port (unsigned long base,
p->physport = p;
if (!parport_SPP_supported (p)) {
/* No port. */
- kfree (priv);
+ kfree(priv);
+ kfree(ops);
return NULL;
}
parport_PS2_supported (p);
if (!(p = parport_register_port(base, PARPORT_IRQ_NONE,
PARPORT_DMA_NONE, ops))) {
- kfree (priv);
- kfree (ops);
+ kfree(priv);
+ kfree(ops);
return NULL;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-22 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22 12:44 [PATCH] drivers/parport/parport_gsc.c: add missing kfree Julia Lawall
2012-04-22 12:44 ` Julia Lawall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.