From 5ed02713979a5229ec68adec1b37c0f0c8238a83 Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Tue, 10 Jan 2012 22:09:25 +0000 Subject: [PATCH] xpp: bugfix: fix bad refcount Code path called in error condition contained an superflous put_xpd() call Signed-off-by: Oron Peled Acked-By: Tzafrir Cohen Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10408 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10417 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xpp_dahdi.c | 1 - 1 file changed, 1 deletion(-) 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);