Julia Lawall
94de803db7
drivers/net/sfc: Correct code taking the size of a pointer
...
The function efx_iterate_state contains the code
memcpy(&payload->msg, payload_msg, sizeof(payload_msg));
This is the only use of payload_msg. The type of payload_msg is
changed from a pointer to an array, so that the result of sizeof really is
the length of the string.
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@@
expression *x;
expression f;
type T;
@@
*f(...,(T)x,...)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-12-13 19:56:34 -08:00
..
bitfield.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
efx.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
efx.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
enum.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
ethtool.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
falcon.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
falcon_boards.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
falcon_gmac.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
falcon_xmac.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
io.h
sfc: Rename register I/O header and functions used by both Falcon and Siena
2009-10-24 04:27:04 -07:00
Kconfig
sfc: Add support for SFC9000 family (2)
2009-11-29 17:23:57 -08:00
mac.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
Makefile
sfc: Add support for SFC9000 family (2)
2009-11-29 17:23:57 -08:00
mcdi.c
sfc: Add support for SFC9000 family (1)
2009-11-29 17:23:56 -08:00
mcdi.h
sfc: Add support for SFC9000 family (1)
2009-11-29 17:23:56 -08:00
mcdi_mac.c
sfc: Add support for SFC9000 family (1)
2009-11-29 17:23:56 -08:00
mcdi_pcol.h
sfc: Add firmware protocol definitions (MCDI)
2009-11-29 17:23:56 -08:00
mcdi_phy.c
sfc: Add support for SFC9000 family (1)
2009-11-29 17:23:56 -08:00
mdio_10g.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
mdio_10g.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
mtd.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
net_driver.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
nic.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
nic.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
phy.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
qt202x_phy.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
regs.h
sfc: Remove duplicate hardware structure definitions
2009-11-29 16:46:26 -08:00
rx.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
selftest.c
drivers/net/sfc: Correct code taking the size of a pointer
2009-12-13 19:56:34 -08:00
selftest.h
sfc: Use generic MDIO functions and definitions
2009-04-29 17:32:30 -07:00
siena.c
sfc: Add support for SFC9000 family (1)
2009-11-29 17:23:56 -08:00
spi.h
sfc: Extend MTD driver for use with new NICs
2009-11-29 17:23:54 -08:00
tenxpress.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
tx.c
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00
workarounds.h
sfc: Update version, copyright dates, authors
2009-11-29 17:23:58 -08:00