From: Sachin Kamat Date: Tue, 25 Feb 2014 09:48:19 +0000 (+0530) Subject: mmc: ushc: Fix incorrect parameter in sizeof X-Git-Tag: firefly_0821_release~176^2~4096^2~57 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c4c7fb19bbf1129da1c3b9fcad9713bd79f3207c;p=firefly-linux-kernel-4.4.55.git mmc: ushc: Fix incorrect parameter in sizeof sizeof should be of the parent structure type. Signed-off-by: Sachin Kamat Acked-by: Ulf Hansson Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/ushc.c b/drivers/mmc/host/ushc.c index c0105a2e269a..d2c386f09d69 100644 --- a/drivers/mmc/host/ushc.c +++ b/drivers/mmc/host/ushc.c @@ -504,7 +504,7 @@ static int ushc_probe(struct usb_interface *intf, const struct usb_device_id *id ret = -ENOMEM; goto err; } - ushc->csw = kzalloc(sizeof(struct ushc_cbw), GFP_KERNEL); + ushc->csw = kzalloc(sizeof(struct ushc_csw), GFP_KERNEL); if (ushc->csw == NULL) { ret = -ENOMEM; goto err;