diff options
author | Michal Nazarewicz <[email protected]> | 2013-11-12 15:11:39 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-11-13 12:09:35 +0900 |
commit | be2d3f97e90cdf9f1523daaba705f320c3efaf00 (patch) | |
tree | c0c01ad705af5a08782d2eb03122db0f5475af68 /net/lapb | |
parent | 1a10bd9424d463e550676e74f4875863d1bae3f5 (diff) |
drivers/memstick/core/mspro_block.c: fix attributes array allocation
attrs field of attribute_group structure is a pointer to a pointer (as in
an array of pointers) rather than pointer to attribute struct (as in an
array of structures), so when allocating size of the pointer sholud be
used instead of the structure it is pointing to.
While at it, also change the call to use kcalloc rather than kzalloc.
Signed-off-by: Michal Nazarewicz <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Alex Dubov <[email protected]>
Cc: Maxim Levitsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions