From: Martin Bachem Date: Thu, 4 Sep 2008 10:42:39 +0000 (+0200) Subject: mISDN: Return error on E-channel access X-Git-Tag: v2.6.29-rc1~20^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=55a6af9749d6a31e087f304f2ea39db3bb7b3f3e;p=linux-2.6-omap-h63xx.git mISDN: Return error on E-channel access Return error on D-channel access with E-channel data requested Signed-off-by: Martin Bachem Signed-off-by: Karsten Keil --- diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index 37c2e19c3b0..ea69d5862f6 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);