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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]     [Free Dating]

Add to Google Powered by Linux