summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorAviv Laufer <aviv.laufer@gmail.com>2009-06-23 15:28:36 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2009-06-23 21:32:58 +0200
commit1d469c6c38c9deaa1836d2c1955330944719e4ef (patch)
treeea22b1dd726d489395f7dd1b486352f8481fcf3d /drivers/video/backlight
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vap... (diff)
downloadlinux-1d469c6c38c9deaa1836d2c1955330944719e4ef.tar.xz
linux-1d469c6c38c9deaa1836d2c1955330944719e4ef.zip
backlight: Fix tdo24m crash on kmalloc
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>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/tdo24m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/tdo24m.c b/drivers/video/backlight/tdo24m.c
index 1dae7f8f3c6b..51422fc4f606 100644
--- 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;