net: Fix inverted test in __skb_recv_datagram
authorRainer Weikusat <rweikusat@mobileactivedefense.com>
Tue, 8 Dec 2015 14:47:56 +0000 (14:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Dec 2015 16:30:17 +0000 (11:30 -0500)
commit760a4322470e3990b14e09bfe80c9c75c77f33dd
treee3ed3541fd276c74eb95c8ede7ddf225c09567b9
parente72c932d3f8a6b56ec9ebad6312504b2e675440a
net: Fix inverted test in __skb_recv_datagram

As the kernel generally uses negated error numbers, *err needs to be
compared with -EAGAIN (d'oh).

Signed-off-by: Rainer Weikusat <rweikusat@mobileactivedefense.com>
Fixes: ea3793ee29d3 ("core: enable more fine-grained datagram reception control")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/datagram.c