diff options
author | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-02-27 05:20:13 +0000 |
---|---|---|
committer | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-02-27 05:20:13 +0000 |
commit | 8e3ba0e29ea96a5d28579fc1eb5d6c68e1895a5f (patch) | |
tree | 896e44bb228719df77f314b71fb7b686df0af909 /zaptel.c | |
parent | 13b50215f07edae9c475a5db4c0e4263d2a38ca9 (diff) |
Return before spin_unlock (bug #1089)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@320 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-rwxr-xr-x | zaptel.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3203,7 +3203,10 @@ static int zt_chanandpseudo_ioctl(struct inode *inode, struct file *file, unsign break; case ZT_DIAL_OP_APPEND: if (strlen(tdo.dialstr) + strlen(chan->txdialbuf) >= ZT_MAX_DTMF_BUF) - return -EBUSY; + { + rv = -EBUSY; + break; + } strncpy(chan->txdialbuf + strlen(chan->txdialbuf), tdo.dialstr, ZT_MAX_DTMF_BUF - strlen(chan->txdialbuf)); if (!chan->dialing) { |