From: Tony Battersby Date: Tue, 31 Mar 2009 22:24:14 +0000 (-0700) Subject: epoll: remember the event if epoll_wait returns -EFAULT X-Git-Tag: v2.6.30-rc1~526 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0305882825784e74f68a56eee6c3a812a99f235;p=pandora-kernel.git epoll: remember the event if epoll_wait returns -EFAULT If epoll_wait returns -EFAULT, the event that was being returned when the fault was encountered will be forgotten. This is not a big deal since EFAULT will happen only if a buggy userspace program passes in a bad address, in which case what happens later usually doesn't matter. However, it is easy to remember the event for later, and this patch makes a simple change to do that. Signed-off-by: Tony Battersby Acked-by: Davide Libenzi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed