Re: [patch -next] udp: fix if statement in SIOCINQ ioctl

From: David Miller
Date: Mon Apr 18 2016 - 13:40:57 EST


From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date: Mon, 18 Apr 2016 11:44:49 +0300

> 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@xxxxxxxxxx>

Applied.