OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8487d0e
)
Staging: comedi: dt2801.c: off by one issue
author
Dan Carpenter
<error27@gmail.com>
Sun, 28 Mar 2010 11:48:34 +0000
(14:48 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 11 May 2010 18:35:39 +0000
(11:35 -0700)
"dac_range_table" has 5 elements.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/dt2801.c
patch
|
blob
|
history
diff --git
a/drivers/staging/comedi/drivers/dt2801.c
b/drivers/staging/comedi/drivers/dt2801.c
index
3f365ae
..
83fb6e5
100644
(file)
--- a/
drivers/staging/comedi/drivers/dt2801.c
+++ b/
drivers/staging/comedi/drivers/dt2801.c
@@
-472,7
+472,7
@@
static const struct comedi_lrange *dac_range_table[] = {
static const struct comedi_lrange *dac_range_lkup(int opt)
{
- if (opt < 0 || opt > 5)
+ if (opt < 0 || opt >
=
5)
return &range_unknown;
return dac_range_table[opt];
}