> --- ../linux-2.4.14-pre6/drivers/net/slip.c Sun Sep 30 21:26:07 2001
> +++ drivers/net/slip.c Tue Nov 6 19:56:48 2001
[...]
> @@ -1412,7 +1412,7 @@
> spin_unlock(&slc->ctrl.lock);
> }
> local_bh_enable();
> - } while (busy && jiffies - start < 1*HZ);
> + } while (busy && time_before(jiffies, timeout);
>
> busy = 0;
> for (i = 0; i < slip_maxdev; i++) {
>
Sorry all, I screwed up.
While I did compile before sending the patch,
somehow I must have missed the error message.
Patch must be
> - } while (busy && jiffies - start < 1*HZ);
> + } while (busy && time_before(jiffies, timeout));
New patch appended.
Tim
--- ../linux-2.4.14-pre6/drivers/net/slip.c Sun Sep 30 21:26:07 2001
+++ drivers/net/slip.c Tue Nov 6 19:56:48 2001
@@ -483,7 +483,7 @@
* 14 Oct 1994 Dmitry Gorodchanin.
*/
#ifdef SL_CHECK_TRANSMIT
- if (jiffies - dev->trans_start < 20 * HZ) {
+ if (time_before(jiffies, dev->trans_start + 20 * HZ)) {
/* 20 sec timeout not reached */
goto out;
}
@@ -1387,7 +1387,7 @@
int i;
if (slip_ctrls != NULL) {
- unsigned long start = jiffies;
+ unsigned long timeout = jiffies + HZ;
int busy = 0;
/* First of all: check for active disciplines and hangup them.
@@ -1412,7 +1412,7 @@
spin_unlock(&slc->ctrl.lock);
}
local_bh_enable();
- } while (busy && jiffies - start < 1*HZ);
+ } while (busy && time_before(jiffies, timeout));
busy = 0;
for (i = 0; i < slip_maxdev; i++) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/