af_unix: Support POLLPRI for OOB.
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>
Thu, 17 Mar 2022 03:08:09 +0000 (12:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:24:14 +0000 (14:24 +0200)
commit21b6b8d43d87708c88ae34be67bb6cbba7bc60a0
tree02c07dd39f617615949ff932941c225ac7fbdec3
parent260daa256d3056fd14d96c7a7519adc2ce4a7862
af_unix: Support POLLPRI for OOB.

commit d9a232d435dcc966738b0f414a86f7edf4f4c8c4 upstream.

The commit 314001f0bf92 ("af_unix: Add OOB support") introduced OOB for
AF_UNIX, but it lacks some changes for POLLPRI.  Let's add the missing
piece.

In the selftest, normal datagrams are sent followed by OOB data, so this
commit replaces `POLLIN | POLLPRI` with just `POLLPRI` in the first test
case.

Fixes: 314001f0bf92 ("af_unix: Add OOB support")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/unix/af_unix.c
tools/testing/selftests/net/af_unix/test_unix_oob.c