af_unix: check socket state when queuing OOB
authorRao Shoaib <Rao.Shoaib@oracle.com>
Fri, 13 Aug 2021 18:19:34 +0000 (11:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Aug 2021 10:12:37 +0000 (11:12 +0100)
commit19eed721079336d515dd2d8fe1f0f4c292b78c70
tree9ec9ec2db69039b1e05f0528e4e255ab7b21ceba
parent6164659ff7acc16f3f37a9278f856fd1fb02a8f9
af_unix: check socket state when queuing OOB

edumazet@google.com pointed out that queue_oob
does not check socket state after acquiring
the lock. He also pointed to an incorrect usage
of kfree_skb and an unnecessary setting of skb
length. This patch addresses those issue.

Signed-off-by: Rao Shoaib <Rao.Shoaib@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c