X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fppp_async.c;h=23659fd7c3a6bc120c5149eeb4a832e28a8c75b3;hb=b04a92e1601eb6df3a3b6599e7fb7ee021eef2cb;hp=aa6540b39466d464f0c70f497469b90820458ac8;hpb=a62e68488dd5ddb07776555fd7e0435c6d021ac1;p=powerpc.git diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c index aa6540b394..23659fd7c3 100644 --- a/drivers/net/ppp_async.c +++ b/drivers/net/ppp_async.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -570,7 +571,7 @@ ppp_async_encode(struct asyncppp *ap) * character if necessary. */ if (islcp || flag_time == 0 - || jiffies - ap->last_xmit >= flag_time) + || time_after_eq(jiffies, ap->last_xmit + flag_time)) *buf++ = PPP_FLAG; ap->last_xmit = jiffies; fcs = PPP_INITFCS;