From c8e0d766679afb79c4a3643c2fa52994c2d3b639 Mon Sep 17 00:00:00 2001 From: Doug Bailey Date: Tue, 22 Sep 2009 14:03:53 +0000 Subject: wctdm: Add missing break A break was missing that caused DAHDI_ONHOOKTRANSFER ioctl call to fall into DAHDI_SETPOLARITY ioctl call. (issue #14261) Reported by: alecdavis Patches: wctdm_fix_ONHOOKTRANSFER.diff.txt uploaded by alecdavis (license 585) Tested by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7194 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/dahdi/wctdm.c') diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index 1cbe13f..f5ad399 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -1952,6 +1952,7 @@ static int wctdm_ioctl(struct dahdi_chan *chan, unsigned int cmd, unsigned long wctdm_setreg(wc, chan->chanpos - 1, LINE_STATE, fxs->lasttxhook); } + break; case DAHDI_SETPOLARITY: if (wc->modtype[chan->chanpos - 1] != MOD_TYPE_FXS) return -EINVAL; -- cgit v1.2.3