From bdcc1545982b3df742318e229b552224751a57b1 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 11 Jan 2012 12:03:56 +0000 Subject: 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.5@10420 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 eafd3b1..42e19e0 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -747,7 +747,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); -- cgit v1.2.3