From: Pavel Vasilyev Date: Mon, 11 Jan 2010 18:08:02 +0000 (+0300) Subject: Staging: dream: HTC Dream camera, not need sizeof X-Git-Tag: MMI-PSA29.97-13-9~24618^2~1^2~200 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=32dbb67138fdb8cefa348d29850eb9a9ce964e09;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: dream: HTC Dream camera, not need sizeof http://bugzilla.kernel.org/show_bug.cgi?id=14825 sizeof(extlen), always will be sizeof( unit32_t) or 4 It seems that something is wrong?!?! Signed-off-by: Pavel Vasilyev Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dream/camera/msm_vfe7x.c b/drivers/staging/dream/camera/msm_vfe7x.c index 33ab3ac6ac57..62fd24d632d5 100644 --- a/drivers/staging/dream/camera/msm_vfe7x.c +++ b/drivers/staging/dream/camera/msm_vfe7x.c @@ -255,8 +255,7 @@ static int vfe_7x_init(struct msm_vfe_callback *presp, extlen = sizeof(struct vfe_frame_extra); - extdata = - kmalloc(sizeof(extlen), GFP_ATOMIC); + extdata = kmalloc(extlen, GFP_ATOMIC); if (!extdata) { rc = -ENOMEM; goto init_fail;