git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mISDN: array underflow in open_bchannel()
[pandora-kernel.git]
/
drivers
/
isdn
/
hardware
/
mISDN
/
w6692.c
diff --git
a/drivers/isdn/hardware/mISDN/w6692.c
b/drivers/isdn/hardware/mISDN/w6692.c
index
7f1e7ba
..
2183357
100644
(file)
--- a/
drivers/isdn/hardware/mISDN/w6692.c
+++ b/
drivers/isdn/hardware/mISDN/w6692.c
@@
-1015,7
+1015,7
@@
open_bchannel(struct w6692_hw *card, struct channel_req *rq)
{
struct bchannel *bch;
- if (rq->adr.channel > 2)
+ if (rq->adr.channel
== 0 || rq->adr.channel
> 2)
return -EINVAL;
if (rq->protocol == ISDN_P_NONE)
return -EINVAL;