forked from Minki/linux
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 <pavel@pavlinux.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
362f46e3ab
commit
32dbb67138
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user