mtd/drivers/mtd/maps pci.c,1.14,1.15
David Woodhouse
dwmw2 at infradead.org
Wed Mar 29 03:41:43 EST 2006
Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv4038/drivers/mtd/maps
Modified Files:
pci.c
Log Message:
From: Eric Sesterhenn <snakebyte at gmx.de>
This fixes coverity bug #12. The first two gotos in the function still
have the initial value for mtd set. And the third goto just triggers for
!mtd
Signed-off-by: Eric Sesterhenn <snakebyte at gmx.de>
Cc: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
Signed-off-by: Andrew Morton <akpm at osdl.org>
Index: pci.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/pci.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- pci.c 17 Nov 2005 08:20:27 -0000 1.14
+++ pci.c 29 Mar 2006 08:41:41 -0000 1.15
@@ -334,9 +334,6 @@
return 0;
release:
- if (mtd)
- map_destroy(mtd);
-
if (map) {
map->exit(dev, map);
kfree(map);
More information about the linux-mtd-cvs
mailing list