The patch titled Subject: eventfd: type bug in eventfd_poll() has been removed from the -mm tree. Its filename was eventfd-dont-take-the-spinlock-in-eventfd_poll-fix-2.patch This patch was dropped because it was folded into eventfd-dont-take-the-spinlock-in-eventfd_poll.patch ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: eventfd: type bug in eventfd_poll() Since "count" is an unsigned int, then these conditions are never true: if (count == ULLONG_MAX) events |= POLLERR; if (ULLONG_MAX - 1 > count) events |= POLLOUT; It should be a u64, because that's what ctx->count is. Also GCC complains that "flags" is unused. Fixes: a90de8a54127 ('eventfd: don't take the spinlock in eventfd_poll') Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Chris Mason <clm@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/eventfd.c~eventfd-dont-take-the-spinlock-in-eventfd_poll-fix-2 fs/eventfd.c --- a/fs/eventfd.c~eventfd-dont-take-the-spinlock-in-eventfd_poll-fix-2 +++ a/fs/eventfd.c @@ -118,7 +118,7 @@ static unsigned int eventfd_poll(struct { struct eventfd_ctx *ctx = file->private_data; unsigned int events = 0; - unsigned int count; + u64 count; poll_wait(file, &ctx->wqh, wait); smp_rmb(); _ Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are origin.patch eventfd-dont-take-the-spinlock-in-eventfd_poll.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html