From: John Fastabend Date: Tue, 14 Aug 2012 12:34:24 +0000 (+0000) Subject: net: netprio: fix files lock and remove useless d_path bits X-Git-Tag: v3.6-rc3~10^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f796c20cf67aa54c9130d0dc41307c0025719b85;p=pandora-kernel.git 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 Reported-by: Al Viro Signed-off-by: John Fastabend Acked-by: Neil Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed