Skip to content

Commit 54640d2

Browse files
committed
fcntl: Don't set si_code to SI_SIGIO when sig == SIGPOLL
When fixing things to avoid ambiguous cases I had a thinko and included SIGPOLL/SIGIO in with all of the other signals that have signal specific si_codes. Which is completely wrong. Fix that. Reported-by: Vince Weaver <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]>
1 parent 2bd6bf0 commit 54640d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ static void send_sigio_to_task(struct task_struct *p,
749749
* specific si_codes. In that case use SI_SIGIO instead
750750
* to remove the ambiguity.
751751
*/
752-
if (sig_specific_sicodes(signum))
752+
if ((signum != SIGPOLL) && sig_specific_sicodes(signum))
753753
si.si_code = SI_SIGIO;
754754

755755
/* Make sure we are called with one of the POLL_*

0 commit comments

Comments
 (0)