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-12-11 15:59:23 -08:00
2009-12-09 19:43:33 -08:00
2009-12-13 19:56:33 -08:00
2009-12-11 11:24:55 -08:00
2009-12-11 12:18:16 -08:00
2009-12-11 11:55:21 -08:00
2009-12-09 19:03:16 -08:00
2009-12-11 15:34:40 -08:00
2009-11-24 13:33:34 -05:00
2009-12-07 18:36:35 +01:00
2009-12-06 11:18:28 +01:00
2009-12-09 19:43:33 -08:00
2009-12-08 13:38:14 +01:00
2009-12-11 15:22:27 -08:00
2009-12-11 11:24:52 -08:00
2009-12-01 16:32:19 -08:00
2009-12-11 14:32:49 -08:00
2009-12-11 11:55:21 -08:00
2009-12-09 19:53:11 -08:00
2009-12-09 19:57:06 -08:00
2009-12-09 19:45:38 -08:00
2009-12-09 19:43:33 -08:00
2009-12-02 01:13:11 -08:00
2009-12-09 19:43:33 -08:00
2009-12-11 12:18:16 -08:00
2009-12-11 17:12:17 -08:00
2009-12-08 08:15:29 -08:00
2009-12-09 19:43:33 -08:00
2009-12-09 19:43:33 -08:00
2009-12-10 12:45:18 -02:00
2009-12-09 19:43:33 -08:00
2009-12-09 19:52:01 -08:00
2009-12-11 15:24:56 -08:00
2009-12-11 15:18:06 -08:00
2009-12-10 09:31:45 -08:00
2009-12-13 19:56:34 -08:00
2009-12-09 19:43:33 -08:00
2009-12-08 08:13:35 -08:00
2009-12-11 12:18:16 -08:00
2009-12-11 12:18:16 -08:00
2009-12-09 19:57:06 -08:00
2009-12-11 12:18:16 -08:00
2009-11-27 21:07:23 +01:00
2009-12-04 15:39:55 +01:00
2009-12-02 19:37:16 +00:00
2009-12-09 19:43:33 -08:00
2009-12-09 19:43:33 -08:00
2009-12-04 15:39:55 +01:00
2009-12-09 19:43:33 -08:00
2009-12-11 15:34:40 -08:00
2009-11-30 12:15:04 +09:00
2009-12-09 19:43:33 -08:00
2009-12-05 15:22:26 -08:00
2009-12-11 15:49:27 -08:00
2009-12-07 18:36:35 +01:00
2009-12-11 15:34:40 -08:00
2009-12-04 15:39:55 +01:00
2009-12-11 12:18:16 -08:00
2009-12-09 19:43:33 -08:00
2009-12-11 12:18:16 -08:00
2009-12-06 11:18:28 +01:00