aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-25 04:48:19 -0500
committerChris Ball <chris@printf.net>2014-02-25 15:42:20 -0500
commitc4c7fb19bbf1129da1c3b9fcad9713bd79f3207c (patch)
tree9ddbf7dcee30cd922e52a3bb7957de5c0226df25 /drivers/mmc
parenta6492c02073cd966ae490c1afcdebdd0d5ba3d81 (diff)
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/ushc.c2
1 files changed, 1 insertions, 1 deletions
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
504 ret = -ENOMEM; 504 ret = -ENOMEM;
505 goto err; 505 goto err;
506 } 506 }
507 ushc->csw = kzalloc(sizeof(struct ushc_cbw), GFP_KERNEL); 507 ushc->csw = kzalloc(sizeof(struct ushc_csw), GFP_KERNEL);
508 if (ushc->csw == NULL) { 508 if (ushc->csw == NULL) {
509 ret = -ENOMEM; 509 ret = -ENOMEM;
510 goto err; 510 goto err;