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
hwmon: (f71882fg) Cleanup sysfs attr creation 1/2
[safe/jmp/linux-2.6]
/
drivers
/
video
/
atafb.c
diff --git
a/drivers/video/atafb.c
b/drivers/video/atafb.c
index
37624f7
..
b7687c5
100644
(file)
--- a/
drivers/video/atafb.c
+++ b/
drivers/video/atafb.c
@@
-2242,6
+2242,9
@@
static int ext_setcolreg(unsigned int regno, unsigned int red,
if (!external_vgaiobase)
return 1;
+ if (regno > 255)
+ return 1;
+
switch (external_card_type) {
case IS_VGA:
OUTB(0x3c8, regno);