Commit Graph
2 Commits
Author SHA1 Message Date
Ilia Mirkin a08aa355af lru_cache: use correct type in sizeof for allocation
This has no actual effect, since sizeof(struct hlist_head) ==
sizeof(struct hlist_head *), but it's still the wrong type to use.

The semantic match that finds this problem:
// <smpl>
@@
type T;
identifier x;
@@
T *x;
...
* x = kzalloc(... * sizeof(T*) * ..., ...);
// </smpl>

[[email protected]: use kcalloc()]
Signed-off-by: Ilia Mirkin <[email protected]>
Acked-by: Lars Ellenberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-05-25 08:39:52 -07:00
Philipp Reisner b411b3637f The DRBD driver
Signed-off-by: Philipp Reisner <[email protected]>
Signed-off-by: Lars Ellenberg <[email protected]>
2009-10-01 21:17:49 +02:00