svn commit: r265820 - user/dchagin/lemul/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sat May 10 14:47:53 UTC 2014


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);
 


More information about the svn-src-user mailing list