diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-25 10:48:19 +0100 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-02-25 21:42:20 +0100 |
commit | c4c7fb19bbf1129da1c3b9fcad9713bd79f3207c (patch) | |
tree | 9ddbf7dcee30cd922e52a3bb7957de5c0226df25 /drivers/mmc/host | |
parent | mmc: sdhci-bcm-kona: Add basic use of clocks (diff) | |
download | linux-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.c | 2 |
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; |