OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
353076f
)
[VIDEO] ffb: The pseudo_palette is only 16 elements long
author
Antonino Daplas
<adaplas@gmail.com>
Tue, 5 Jun 2007 20:14:33 +0000
(13:14 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 Jun 2007 20:14:33 +0000
(13:14 -0700)
The pseudo_palette is only 16 elements long.
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/video/ffb.c
patch
|
blob
|
history
diff --git
a/drivers/video/ffb.c
b/drivers/video/ffb.c
index
1d4e835
..
3f6c98f
100644
(file)
--- a/
drivers/video/ffb.c
+++ b/
drivers/video/ffb.c
@@
-656,7
+656,7
@@
static int ffb_setcolreg(unsigned regno,
{
u32 value;
- if (regno >=
25
6)
+ if (regno >=
1
6)
return 1;
red >>= 8;
@@
-903,7
+903,7
@@
ffb_init_fix(struct fb_info *info)
struct all_info {
struct fb_info info;
struct ffb_par par;
- u32 pseudo_palette[
25
6];
+ u32 pseudo_palette[
1
6];
};
static int ffb_init_one(struct of_device *op)