Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd9109fe

Browse files
andraprsgregkh
authored andcommitted
nitro_enclaves: Fixup type and simplify logic of the poll mask setup
Update the assigned value of the poll result to be EPOLLHUP instead ofPOLLHUP to match the __poll_t type.While at it, simplify the logic of setting the mask result of the pollfunction.Reported-by: kernel test robot <lkp@intel.com>Reviewed-by: Alexander Graf <graf@amazon.com>Signed-off-by: Andra Paraschiv <andraprs@amazon.com>Link:https://lore.kernel.org/r/20201102173622.32169-1-andraprs@amazon.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent3ed1cfb commitd9109fe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎drivers/virt/nitro_enclaves/ne_misc_dev.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,10 +1505,8 @@ static __poll_t ne_enclave_poll(struct file *file, poll_table *wait)
15051505

15061506
poll_wait(file,&ne_enclave->eventq,wait);
15071507

1508-
if (!ne_enclave->has_event)
1509-
returnmask;
1510-
1511-
mask=POLLHUP;
1508+
if (ne_enclave->has_event)
1509+
mask |=EPOLLHUP;
15121510

15131511
returnmask;
15141512
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp