summaryrefslogtreecommitdiff
path: root/net/core/gen_estimator.c
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2012-08-14 16:34:24 +0400
committerDavid S. Miller <davem@davemloft.net>2012-08-17 01:56:11 +0400
commitf796c20cf67aa54c9130d0dc41307c0025719b85 (patch)
treeeea2e9d62d56083968683d5df80565c611edfbab /net/core/gen_estimator.c
parent16c0b164bd24d44db137693a36b428ba28970c62 (diff)
downloadlinux-f796c20cf67aa54c9130d0dc41307c0025719b85.tar.xz
net: netprio: fix files lock and remove useless d_path bits
Add lock to prevent a race with a file closing and also remove useless and ugly sscanf code. The extra code was never needed and the case it supposedly protected against is in fact handled correctly by sock_from_file as pointed out by Al Viro. CC: Neil Horman <nhorman@tuxdriver.com> Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/gen_estimator.c')
0 files changed, 0 insertions, 0 deletions