summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-25 10:48:19 +0100
committerChris Ball <chris@printf.net>2014-02-25 21:42:20 +0100
commitc4c7fb19bbf1129da1c3b9fcad9713bd79f3207c (patch)
tree9ddbf7dcee30cd922e52a3bb7957de5c0226df25 /drivers/mmc/host
parentmmc: sdhci-bcm-kona: Add basic use of clocks (diff)
downloadlinux-c4c7fb19bbf1129da1c3b9fcad9713bd79f3207c.tar.xz
linux-c4c7fb19bbf1129da1c3b9fcad9713bd79f3207c.zip
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/host')
-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
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;