unsigned int mask = 0;
if (file->f_mode & FMODE_READ) {
- init_poll_funcptr(wait, wrapper_pollwait_exclusive);
+ poll_wait_set_exclusive(wait);
poll_wait(file, channel->ops->get_hp_wait_queue(channel->chan),
wait);
+ if (channel->ops->is_disabled(channel->chan))
+ return POLLERR;
if (channel->ops->is_finalized(channel->chan))
return POLLHUP;
else