mmc: ushc: Fix incorrect parameter in sizeof

sizeof should be of the parent structure type.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
This commit is contained in:
Sachin Kamat 2014-02-25 15:18:19 +05:30 committed by Chris Ball
parent a6492c0207
commit c4c7fb19bb
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ static int ushc_probe(struct usb_interface *intf, const struct usb_device_id *id
ret = -ENOMEM; ret = -ENOMEM;
goto err; goto err;
} }
ushc->csw = kzalloc(sizeof(struct ushc_cbw), GFP_KERNEL); ushc->csw = kzalloc(sizeof(struct ushc_csw), GFP_KERNEL);
if (ushc->csw == NULL) { if (ushc->csw == NULL) {
ret = -ENOMEM; ret = -ENOMEM;
goto err; goto err;