]> err.no Git - linux-2.6/blobdiff - kernel/auditfilter.c
[POWERPC] spufs: fix order of sputrace thread IDs
[linux-2.6] / kernel / auditfilter.c
index a36e66797c3d871a4381647aebfb3f3926fd5dcf..2f2914b7cc302136c223b6bd44ff49ea6a30de24 100644 (file)
@@ -1161,11 +1161,11 @@ static int audit_get_nd(char *path, struct nameidata **ndp,
 static void audit_put_nd(struct nameidata *ndp, struct nameidata *ndw)
 {
        if (ndp) {
-               path_release(ndp);
+               path_put(&ndp->path);
                kfree(ndp);
        }
        if (ndw) {
-               path_release(ndw);
+               path_put(&ndw->path);
                kfree(ndw);
        }
 }