diff options
| -rw-r--r-- | drivers/memstick/core/mspro_block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c index f4176ca3a794..fc145d202c46 100644 --- a/drivers/memstick/core/mspro_block.c +++ b/drivers/memstick/core/mspro_block.c | |||
| @@ -1023,8 +1023,8 @@ static int mspro_block_read_attributes(struct memstick_dev *card) | |||
| 1023 | } else | 1023 | } else |
| 1024 | attr_count = attr->count; | 1024 | attr_count = attr->count; |
| 1025 | 1025 | ||
| 1026 | msb->attr_group.attrs = kzalloc((attr_count + 1) | 1026 | msb->attr_group.attrs = kcalloc(attr_count + 1, |
| 1027 | * sizeof(struct attribute), | 1027 | sizeof(*msb->attr_group.attrs), |
| 1028 | GFP_KERNEL); | 1028 | GFP_KERNEL); |
| 1029 | if (!msb->attr_group.attrs) { | 1029 | if (!msb->attr_group.attrs) { |
| 1030 | rc = -ENOMEM; | 1030 | rc = -ENOMEM; |
