OSDN Git Service

net: diag: slightly refactor the inet_diag_bc_audit error checks.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 24 Aug 2016 06:46:25 +0000 (15:46 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Sun, 18 Sep 2016 16:51:21 +0000 (01:51 +0900)
commit5bd0c83ba48ce73eb89bd4308b07a263a07dd21e
tree8ce7c4ed48e4cd0410502c5f332225d6f469a39f
parenteb87372aa93bc9849fe05a86eb0994e2bc755c45
net: diag: slightly refactor the inet_diag_bc_audit error checks.

This simplifies the code a bit and also allows inet_diag_bc_audit
to send to userspace an error that isn't EINVAL.

[cherry-pick of net-next 627cc4add53c0470bfd118002669205d222d3a54]

Change-Id: Iee3d2bbb19f3110d71f0698ffb293f9bdffc8ef1
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c