git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fbdev: move FBIO_WAITFORVSYNC to linux/fb.h
[safe/jmp/linux-2.6]
/
drivers
/
video
/
pmag-ba-fb.c
diff --git
a/drivers/video/pmag-ba-fb.c
b/drivers/video/pmag-ba-fb.c
index
0573ec6
..
0f361b6
100644
(file)
--- a/
drivers/video/pmag-ba-fb.c
+++ b/
drivers/video/pmag-ba-fb.c
@@
-98,7
+98,8
@@
static int pmagbafb_setcolreg(unsigned int regno, unsigned int red,
{
struct pmagbafb_par *par = info->par;
- BUG_ON(regno >= info->cmap.len);
+ if (regno >= info->cmap.len)
+ return 1;
red >>= 8; /* The cmap fields are 16 bits */
green >>= 8; /* wide, but the hardware colormap */