projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362f46e
)
Staging: dream: HTC Dream camera, not need sizeof
author
Pavel Vasilyev
<pavel@pavlinux.ru>
Mon, 11 Jan 2010 18:08:02 +0000
(21:08 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 4 Mar 2010 00:42:43 +0000
(16:42 -0800)
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>
drivers/staging/dream/camera/msm_vfe7x.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dream/camera/msm_vfe7x.c
b/drivers/staging/dream/camera/msm_vfe7x.c
index
33ab3ac
..
62fd24d
100644
(file)
--- 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;