alistair23-linux/drivers/memstick/core
Michal Nazarewicz be2d3f97e9 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 <mina86@mina86.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-11-13 12:09:35 +09:00
..
Kconfig memstick: add support for legacy memorysticks 2013-09-11 15:59:35 -07:00
Makefile memstick: add support for legacy memorysticks 2013-09-11 15:59:35 -07:00
memstick.c memstick: convert bus code to use dev_groups 2013-10-16 18:40:58 -07:00
ms_block.c memstick: add support for legacy memorysticks 2013-09-11 15:59:35 -07:00
ms_block.h memstick: add support for legacy memorysticks 2013-09-11 15:59:35 -07:00
mspro_block.c drivers/memstick/core/mspro_block.c: fix attributes array allocation 2013-11-13 12:09:35 +09:00