Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 14:47:53 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r265820 - user/dchagin/lemul/sys/compat/linux
Message-ID:  <201405101447.s4AElr6l057024@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sat May 10 14:47:53 2014
New Revision: 265820
URL: http://svnweb.freebsd.org/changeset/base/265820

Log:
  Fix incorrect event_poll array indexing in epoll_kev_copyout callback.

Modified:
  user/dchagin/lemul/sys/compat/linux/linux_event.c

Modified: user/dchagin/lemul/sys/compat/linux/linux_event.c
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux_event.c	Sat May 10 14:27:24 2014	(r265819)
+++ user/dchagin/lemul/sys/compat/linux/linux_event.c	Sat May 10 14:47:53 2014	(r265820)
@@ -286,7 +286,7 @@ epoll_kev_copyout(void *arg, struct keve
 		fd = kevp[i].ident;
 		KASSERT(fd < emd->fdc, ("epoll user data vector"
 						    " is too small.\n"));
-		eep->data = emd->udata[fd];
+		eep[i].data = emd->udata[fd];
 	}
 	LINUX_PEM_SUNLOCK(pem);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405101447.s4AElr6l057024>