diff options
| author | Ilia Mirkin <[email protected]> | 2011-05-25 00:13:30 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-05-25 15:39:52 +0000 |
| commit | a08aa355af18c53f17f499c1cc6e2af66a77ba9b (patch) | |
| tree | 1eea598cd9000361a30ddf521bca0022aee7d52b /lib/genalloc.c | |
| parent | leds: provide helper to register "leds-gpio" devices (diff) | |
| download | kernel-a08aa355af18c53f17f499c1cc6e2af66a77ba9b.tar.gz kernel-a08aa355af18c53f17f499c1cc6e2af66a77ba9b.zip | |
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]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions
