--- zzzz-none-000/linux-3.10.107/drivers/memstick/core/mspro_block.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/memstick/core/mspro_block.c 2021-02-04 17:41:59.000000000 +0000 @@ -1024,8 +1024,8 @@ } else 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); if (!msb->attr_group.attrs) { rc = -ENOMEM;