diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 360e564ae7d1..d7f309f74dec 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -578,10 +578,10 @@ static __poll_t mqueue_poll_file(struct file *filp, struct poll_table_struct *po | |||
578 | 578 | ||
579 | spin_lock(&info->lock); | 579 | spin_lock(&info->lock); |
580 | if (info->attr.mq_curmsgs) | 580 | if (info->attr.mq_curmsgs) |
581 | retval = POLLIN | POLLRDNORM; | 581 | retval = EPOLLIN | EPOLLRDNORM; |
582 | 582 | ||
583 | if (info->attr.mq_curmsgs < info->attr.mq_maxmsg) | 583 | if (info->attr.mq_curmsgs < info->attr.mq_maxmsg) |
584 | retval |= POLLOUT | POLLWRNORM; | 584 | retval |= EPOLLOUT | EPOLLWRNORM; |
585 | spin_unlock(&info->lock); | 585 | spin_unlock(&info->lock); |
586 | 586 | ||
587 | return retval; | 587 | return retval; |