Skip to content

Commit

Permalink
Staging: dream: HTC Dream camera, not need sizeof
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Vasilyev authored and gregkh committed Mar 4, 2010
1 parent 362f46e commit 32dbb67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/dream/camera/msm_vfe7x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 32dbb67

Please sign in to comment.