Skip to contentSkip to conversation

ISDN: don't unlock lp if there is nothing to unlock

PATCH New Patrick McHardy 1 participant 1 message Mar 21, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ISDN: don't unlock lp if there is nothing to unlock

This patch fixes a bug introduced with 2.4.20, it is tried to unlock lp after failed call to isdn_net_get_locked_lp.

Regards,
Patrick

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1104 -> 1.1105
# drivers/isdn/isdn_ppp.c 1.21 -> 1.22
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/03/21 [email protected] 1.1105
# [ISDN]: don't try to unlock when there is nothing to unlock
# --------------------------------------------
#

drivers/isdn/isdn_ppp.c +1 -1
diff -Nru a/drivers/isdn/isdn_ppp.c b/drivers/isdn/isdn_ppp.c
@@ -1251,7 +1251,7 @@
 	if (!lp) {
 		printk(KERN_WARNING "%s: all channels busy - requeuing!\n", netdev->name);
 		retval = 1;
-		goto unlock;
+		goto out;
 	}
 	/* we have our lp locked from now on */