diff --git a/criu/uffd.c b/criu/uffd.c index 61100b8ea0..988e31192b 100644 --- a/criu/uffd.c +++ b/criu/uffd.c @@ -730,6 +730,7 @@ static int handle_requests(int epollfd, struct epoll_event *events) for (i = 0; i < ret; i++) { lpi = uffd_to_lpi(events[i].data.fd); + BUG_ON(!lpi); ret = handle_user_fault(lpi, dest); if (ret < 0) goto out;