fix flowctl causing deadlocks

This commit is contained in:
Alexandre Ratchov 2012-10-28 15:36:57 +01:00
parent a26dd8e520
commit b7818cbbce
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ sock_attach(struct sock *f, int force)
*/
f->delta = dev_getpos(f->dev) *
(int)f->round / (int)f->dev->round;
f->fillpending = f->delta;
f->fillpending = 0;
f->pstate = SOCK_RUN;
#ifdef DEBUG
if (debug_level >= 3) {