original_kernel/drivers
Jesper Juhl 4f678a58d3 mtd: fix memory leaks in phram_setup
There are two code paths in drivers/mtd/devices/phram.c::phram_setup() that
will leak memory.
Memory is allocated to the variable 'name' with kmalloc() by the
parse_name() function, but if we leave by way of the parse_err() macro,
then that memory is never kfree()'d, nor is it ever used with
register_device() so it won't be freed later either - leak.

Found by the Coverity checker as #593 - simple fix below.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-05-14 00:13:30 +01:00
..
acorn
acpi
amba
atm
base [PATCH] Remove __devinit and __cpuinit from notifier_call definitions 2006-04-26 08:30:03 -07:00
block [PATCH] powerpc: Use check_legacy_ioport() on ppc32 too. 2006-04-28 21:04:55 +10:00
bluetooth
cdrom
char [PATCH] genrtc: fix read on 64-bit platforms 2006-05-01 18:17:47 -07:00
connector
cpufreq [PATCH] Remove __devinit and __cpuinit from notifier_call definitions 2006-04-26 08:30:03 -07:00
crypto
dio
edac
eisa
fc4
firmware
hwmon
i2c
ide
ieee1394
infiniband IB/ipath: tidy up white space in a few files 2006-05-01 12:14:23 -07:00
input Merge git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2006-05-01 07:48:38 -07:00
isdn
leds
macintosh
mca
md [PATCH] md: Fix 'rdev->nr_pending' count when retrying barrier requests 2006-05-01 18:17:42 -07:00
media [ALSA] add __devinitdata to all pci_device_id 2006-04-27 21:10:34 +02:00
message
mfd
misc
mmc
mtd mtd: fix memory leaks in phram_setup 2006-05-14 00:13:30 +01:00
net forcedeth: fix multi irq issues 2006-05-02 15:26:06 -04:00
nubus
oprofile
parisc
parport
pci [PATCH] PCI quirk: VIA IRQ fixup should only run for VIA southbridges 2006-04-27 13:00:51 -07:00
pcmcia [PATCH] request_irq(): remove warnings from irq probing 2006-04-28 08:33:46 -07:00
pnp
rapidio
rtc [PATCH] RTC: rtc-dev tweak for 64-bit kernel 2006-05-01 18:17:46 -07:00
s390 [PATCH] s390: fix ipd handling 2006-05-01 18:17:46 -07:00
sbus
scsi [SCSI] advansys driver: limp along on x86 2006-04-29 14:27:13 -07:00
serial [PATCH] ppc32 CPM_UART: Fixed odd address translations 2006-04-28 21:11:33 +10:00
sh
sn [PATCH] Altix: correct ioc3 port order 2006-05-01 18:17:45 -07:00
spi
tc
telephony
usb [PATCH] USB: ftdi_sio: add support for ASK RDR 400 series card reader 2006-04-27 10:28:59 -07:00
video [PATCH] au1200fb: Remove accidentally duplicated content of au1200fb.c 2006-04-29 17:05:11 -07:00
w1
zorro
Kconfig
Makefile