1
0
Files
linux/drivers/net
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
..
2009-10-13 11:48:18 -07:00
2009-12-08 20:37:46 -08:00
2009-12-11 11:55:21 -08:00
2009-12-03 15:58:00 -08:00
2009-11-05 20:00:41 -08:00
2009-11-05 20:00:29 -08:00
2009-11-06 20:26:09 -08:00
2009-10-11 23:30:16 -07:00
2009-10-11 23:30:16 -07:00
2009-10-13 11:48:18 -07:00
2009-11-11 19:22:21 -08:00
2009-09-23 07:39:43 -07:00
2009-10-11 11:20:58 -07:00
2009-10-20 18:51:37 -07:00
2009-11-20 15:35:04 -08:00
2009-12-10 13:50:56 -08:00
2009-10-13 11:48:18 -07:00
2009-10-20 19:11:06 -07:00
2009-11-13 14:07:30 -08:00
2009-12-07 18:36:35 +01:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-10-01 15:14:54 -07:00
2009-10-29 22:57:27 -07:00
2009-12-03 13:18:08 -08:00
2009-12-03 13:18:04 -08:00
2009-11-06 22:52:32 -08:00
2009-11-26 15:51:29 -08:00