diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-25 15:18:19 +0530 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-02-25 15:42:20 -0500 |
commit | c4c7fb19bbf1129da1c3b9fcad9713bd79f3207c (patch) | |
tree | 9ddbf7dcee30cd922e52a3bb7957de5c0226df25 /drivers/mmc/host/ushc.c | |
parent | a6492c02073cd966ae490c1afcdebdd0d5ba3d81 (diff) | |
download | op-kernel-dev-c4c7fb19bbf1129da1c3b9fcad9713bd79f3207c.zip op-kernel-dev-c4c7fb19bbf1129da1c3b9fcad9713bd79f3207c.tar.gz |
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/ushc.c')
-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 c0105a2..d2c386f 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; |