Commit 6ca7d09d authored by Seth Forshee's avatar Seth Forshee

Revert "UBUNTU: SAUCE: apparmor: fix sleep in critical section"

BugLink: http://bugs.launchpad.net/bugs/1611078

This reverts commit 63f6655e,
which is superseded by later patches.
Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
parent fe63540b
...@@ -405,6 +405,7 @@ int aa_bind_mount(struct aa_label *label, struct path *path, ...@@ -405,6 +405,7 @@ int aa_bind_mount(struct aa_label *label, struct path *path,
&old_path), &old_path),
old_buffer, &old_name, &info, old_buffer, &old_name, &info,
labels_profile(label)->disconnected); labels_profile(label)->disconnected);
path_put(&old_path);
if (error) if (error)
goto error; goto error;
...@@ -414,7 +415,6 @@ int aa_bind_mount(struct aa_label *label, struct path *path, ...@@ -414,7 +415,6 @@ int aa_bind_mount(struct aa_label *label, struct path *path,
out: out:
put_buffers(buffer, old_buffer); put_buffers(buffer, old_buffer);
path_put(&old_path);
return error; return error;
...@@ -494,6 +494,7 @@ int aa_move_mount(struct aa_label *label, struct path *path, ...@@ -494,6 +494,7 @@ int aa_move_mount(struct aa_label *label, struct path *path,
&old_path), &old_path),
old_buffer, &old_name, &info, old_buffer, &old_name, &info,
labels_profile(label)->disconnected); labels_profile(label)->disconnected);
path_put(&old_path);
if (error) if (error)
goto error; goto error;
...@@ -503,7 +504,6 @@ int aa_move_mount(struct aa_label *label, struct path *path, ...@@ -503,7 +504,6 @@ int aa_move_mount(struct aa_label *label, struct path *path,
out: out:
put_buffers(buffer, old_buffer); put_buffers(buffer, old_buffer);
path_put(&old_path);
return error; return error;
...@@ -557,6 +557,7 @@ int aa_new_mount(struct aa_label *label, const char *orig_dev_name, ...@@ -557,6 +557,7 @@ int aa_new_mount(struct aa_label *label, const char *orig_dev_name,
&dev_path), &dev_path),
dev_buffer, &dev_name, &info, dev_buffer, &dev_name, &info,
labels_profile(label)->disconnected); labels_profile(label)->disconnected);
path_put(&dev_path);
if (error) if (error)
goto error; goto error;
} }
...@@ -573,8 +574,6 @@ int aa_new_mount(struct aa_label *label, const char *orig_dev_name, ...@@ -573,8 +574,6 @@ int aa_new_mount(struct aa_label *label, const char *orig_dev_name,
cleanup: cleanup:
put_buffers(buffer, dev_buffer); put_buffers(buffer, dev_buffer);
if (requires_dev)
path_put(&dev_path);
return error; return error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment