Fix reference count leak in nuke_ext4_sysfs() (#2467)
We need to call path_put() to decrease the refcount.
This commit is contained in:
@@ -236,10 +236,12 @@ static void nuke_ext4_sysfs() {
|
|||||||
const char* name = sb->s_type->name;
|
const char* name = sb->s_type->name;
|
||||||
if (strcmp(name, "ext4") != 0) {
|
if (strcmp(name, "ext4") != 0) {
|
||||||
pr_info("nuke but module aren't mounted\n");
|
pr_info("nuke but module aren't mounted\n");
|
||||||
|
path_put(&path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ext4_unregister_sysfs(sb);
|
ext4_unregister_sysfs(sb);
|
||||||
|
path_put(&path);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
|
int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
|
||||||
|
|||||||
Reference in New Issue
Block a user