forked from Minki/linux
27b81bbed8
Use kmemdup when some other buffer is immediately copied into the allocated region. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression from,to,size,flag; statement S; @@ - to = \(kmalloc\|kzalloc\)(size,flag); + to = kmemdup(from,size,flag); if (to==NULL || ...) S - memcpy(to, from, size); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
---|---|---|
.. | ||
eeprom.c | ||
eeprom.h | ||
fwio.c | ||
Kconfig | ||
led.c | ||
lmac.h | ||
main.c | ||
Makefile | ||
net2280.h | ||
p54.h | ||
p54pci.c | ||
p54pci.h | ||
p54spi_eeprom.h | ||
p54spi.c | ||
p54spi.h | ||
p54usb.c | ||
p54usb.h | ||
txrx.c |