Re: [CHECKER] Race condition in i2o_core.c

From: Alan Cox
Date: Fri Apr 02 2004 - 04:20:44 EST


On Thu, Apr 01, 2004 at 05:46:00PM -0800, Ken Ashcraft wrote:
> Looks like there is a race condition in i2o_core_reply involving the
> variable "evt_in". Notice that the increment of evt_in is protected by the
> lock, but the reads are not protected. It looks like "events" should also
> be protected by the lock. If this is not a race condition, the increment
> should not be inside the critical section.
>
> Feedback is appreciated.

Looks a fair catch to me.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/