Commit 00f12b55 authored by Alessandro Rubini's avatar Alessandro Rubini

wr-nic-dio: bugfix in interrupt for timestamps (my bug)

commit "9d4d08e5kernel: correct warning for uninitialized variable"
introduced a bug, so the process was not properly awoken. The
commit is reported to be by Benoit, but I edited it and introduced
this bug which was missing in his submission.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 07813083
......@@ -243,14 +243,16 @@ again:
nstamp++;
ts++;
}
if (nstamp) break;
if (nstamp) {
cmd->channel = ch;
break;
}
}
cmd->nstamp = nstamp;
if (nstamp)
cmd->channel = ch; /* if any, they are all of this channel */
/* The user may asketo wait for timestamps, but for 1 channel only */
if (!nstamp && cmd->flags & WR_DIO_F_WAIT) {
ch--; c--; /* The for above incremeted them */
/*
* HACK: since 2.1.68 (Nov 1997) the ioctl is called locked.
* So we need to unlock, but that is dangerous for rmmod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment