]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
revert-tools-testing-selftests-epoll-test_epollc-fix-build
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 25 Oct 2012 01:13:59 +0000 (12:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 01:13:59 +0000 (12:13 +1100)
To include in revert-epoll-support-for-disabling-items-and-a-self-test-app.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/epoll/test_epoll.c

index f7525392ce84f58e9668187bb3708869d5b7c35d..e0fcff1e833107c8e91e35866e94fd847a300242 100644 (file)
@@ -162,14 +162,14 @@ void *write_thread_function(void *function_data)
        int index;
        struct write_thread_data *thread_data =
                (struct write_thread_data *)function_data;
-       while (!thread_data->stop)
+       while (!write_thread_data->stop)
                for (index = 0;
                     !thread_data->stop && (index < thread_data->n_fds);
                     ++index)
                        if ((write(thread_data->fds[index], &data, 1) < 1) &&
                                (errno != EAGAIN) &&
                                (errno != EWOULDBLOCK)) {
-                               thread_data->status = errno;
+                               write_thread_data->status = errno;
                                return;
                        }
 }