summaryrefslogtreecommitdiff
path: root/drivers/isdn/hardware
diff options
context:
space:
mode:
authorMartin Bachem <m.bachem@gmx.de>2008-09-04 14:42:39 +0400
committerKarsten Keil <kkeil@suse.de>2009-01-10 00:44:26 +0300
commit55a6af9749d6a31e087f304f2ea39db3bb7b3f3e (patch)
tree1b37f30b95ce22e32f2296aed67cbab927668d6f /drivers/isdn/hardware
parent1f28fa19d34c0d9186f274e61e4b3dcfc6428c5c (diff)
downloadlinux-55a6af9749d6a31e087f304f2ea39db3bb7b3f3e.tar.xz
mISDN: Return error on E-channel access
Return error on D-channel access with E-channel data requested Signed-off-by: Martin Bachem <m.bachem@gmx.de> Signed-off-by: Karsten Keil <kkeil@suse.de>
Diffstat (limited to 'drivers/isdn/hardware')
-rw-r--r--drivers/isdn/hardware/mISDN/hfcpci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c
index 37c2e19c3b00..ea69d5862f6d 100644
--- a/drivers/isdn/hardware/mISDN/hfcpci.c
+++ b/drivers/isdn/hardware/mISDN/hfcpci.c
@@ -1894,6 +1894,10 @@ open_dchannel(struct hfc_pci *hc, struct mISDNchannel *ch,
hc->dch.dev.id, __builtin_return_address(0));
if (rq->protocol == ISDN_P_NONE)
return -EINVAL;
+ if (rq->adr.channel == 1) {
+ /* TODO: E-Channel */
+ return -EINVAL;
+ }
if (!hc->initdone) {
if (rq->protocol == ISDN_P_TE_S0) {
err = create_l1(&hc->dch, hfc_l1callback);