|
@@ -1023,8 +1023,8 @@ static int mspro_block_read_attributes(struct memstick_dev *card)
|
|
} else
|
|
} else
|
|
attr_count = attr->count;
|
|
attr_count = attr->count;
|
|
|
|
|
|
- msb->attr_group.attrs = kzalloc((attr_count + 1)
|
|
|
|
- * sizeof(struct attribute),
|
|
|
|
|
|
+ msb->attr_group.attrs = kcalloc(attr_count + 1,
|
|
|
|
+ sizeof(*msb->attr_group.attrs),
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
if (!msb->attr_group.attrs) {
|
|
if (!msb->attr_group.attrs) {
|
|
rc = -ENOMEM;
|
|
rc = -ENOMEM;
|