Tag: 710708e82bfbdd392ebdef5743e68fef0fde91a6

drivers/atm: Correct code taking the size of a pointer

Author: Julia Lawall <julia@diku.dk> sizeof(TstSchedTbl) is just the size of the pointer. Change it to the size of the referenced data. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression *x; expression f; type T; @@ *f(…,(T)x,…) // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — …

Continue reading