X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=security%2Fapparmor%2Fpath.c;fp=security%2Fapparmor%2Fpath.c;h=36cc0cc39e78e135630384e6500f4a789fe7aa2a;hb=be148247cfbe2422f5709e77d9c3e10b8a6394da;hp=82396050f18646ac0519352321637e930c05e367;hpb=85fe4025c616a7c0ed07bc2fc8c5371b07f3888c;p=net-next-2.6.git diff --git a/security/apparmor/path.c b/security/apparmor/path.c index 82396050f18..36cc0cc39e7 100644 --- a/security/apparmor/path.c +++ b/security/apparmor/path.c @@ -72,10 +72,8 @@ static int d_namespace_path(struct path *path, char *buf, int buflen, path_get(&root); } - spin_lock(&dcache_lock); tmp = root; res = __d_path(path, &tmp, buf, buflen); - spin_unlock(&dcache_lock); *name = res; /* handle error conditions - and still allow a partial path to