Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Chris Ball
c4c7fb19 a6492c02

+1 -1
+1 -1
drivers/mmc/host/ushc.c
··· 504 504 ret = -ENOMEM; 505 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 508 if (ushc->csw == NULL) { 509 509 ret = -ENOMEM; 510 510 goto err;