[PATCH] drivers/parport/parport_gsc.c: add missing kfree

From: Julia Lawall
Date: Sun Apr 22 2012 - 08:44:43 EST


From: Julia Lawall <Julia.Lawall@xxxxxxx>

Free ops as done just below.
Adjust some spacing to please checkpatch.

Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>

---
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;
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/