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
This commit is contained in:
parent
6f2a52b764
commit
0f619852d8
@ -697,7 +697,6 @@ int xpp_open(struct dahdi_chan *chan)
|
|||||||
pos = chan->chanpos - 1;
|
pos = chan->chanpos - 1;
|
||||||
if(!xpd->card_present) {
|
if(!xpd->card_present) {
|
||||||
LINE_NOTICE(xpd, pos, "Cannot open -- device not ready\n");
|
LINE_NOTICE(xpd, pos, "Cannot open -- device not ready\n");
|
||||||
put_xpd(__FUNCTION__, xpd);
|
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
spin_lock_irqsave(&xbus->lock, flags);
|
spin_lock_irqsave(&xbus->lock, flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user