[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1335098655-18387-1-git-send-email-Julia.Lawall@lip6.fr>
Date: Sun, 22 Apr 2012 14:44:15 +0200
From: Julia Lawall <Julia.Lawall@...6.fr>
To: linux-kernel@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org
Subject: [PATCH] drivers/parport/parport_gsc.c: add missing kfree
From: Julia Lawall <Julia.Lawall@...6.fr>
Free ops as done just below.
Adjust some spacing to please checkpatch.
Signed-off-by: Julia Lawall <Julia.Lawall@...6.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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists