diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-05 17:33:47 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-05 17:33:47 +0000 |
commit | ebf0e7761b327b8c59fa7ca1be370e85154d058d (patch) | |
tree | d70a16c9863ccc751446f1dcedc98a2835c8a174 /drivers/dahdi | |
parent | f1d617f61ce6fb4bffc282edf2cba1dd785d89d1 (diff) |
xpp: bugfix: fix bad refcount
Code path called in error condition contained an superflous put_xpd() call
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10408 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/xpp/xpp_dahdi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c index 6ccdce1..a53f2d2 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -697,7 +697,6 @@ int xpp_open(struct dahdi_chan *chan) pos = chan->chanpos - 1; if(!xpd->card_present) { LINE_NOTICE(xpd, pos, "Cannot open -- device not ready\n"); - put_xpd(__FUNCTION__, xpd); return -ENODEV; } spin_lock_irqsave(&xbus->lock, flags); |