projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d888a4c
)
backlight: Fix tdo24m crash on kmalloc
author
Aviv Laufer
<aviv.laufer@gmail.com>
Tue, 23 Jun 2009 13:28:36 +0000
(16:28 +0300)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Tue, 23 Jun 2009 19:32:58 +0000
(20:32 +0100)
There is a crash in tdo24m module caused by a call to kmalloc with
the second parameter sizeof(flag) instead of flag.
Signed-off-by: Aviv Laufer <aviv.laufer@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/tdo24m.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/tdo24m.c
b/drivers/video/backlight/tdo24m.c
index
1dae7f8
..
51422fc
100644
(file)
--- a/
drivers/video/backlight/tdo24m.c
+++ b/
drivers/video/backlight/tdo24m.c
@@
-356,7
+356,7
@@
static int __devinit tdo24m_probe(struct spi_device *spi)
lcd->power = FB_BLANK_POWERDOWN;
lcd->mode = MODE_VGA; /* default to VGA */
- lcd->buf = kmalloc(TDO24M_SPI_BUFF_SIZE,
sizeof(GFP_KERNEL)
);
+ lcd->buf = kmalloc(TDO24M_SPI_BUFF_SIZE,
GFP_KERNEL
);
if (lcd->buf == NULL) {
kfree(lcd);
return -ENOMEM;