udp: fix if statement in SIOCINQ ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Apr 2016 08:44:49 +0000 (11:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2016 17:40:08 +0000 (13:40 -0400)
commit110361f41c17d1f565e2fd03a0af044c29e6513a
treea8dd122b317c38b621abf95a031f90d3fc84c0e1
parent550bce59baf3f3059cd4ae1e268f08f2d2cb1d5c
udp: fix if statement in SIOCINQ ioctl

We deleted a line of code and accidentally made the "return put_user()"
part of the if statement when it's supposed to be unconditional.

Fixes: 9f9a45beaa96 ('udp: do not expect udp headers on ioctl SIOCINQ')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c