We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf61acb commit 7f31cceCopy full SHA for 7f31cce
mm/nommu.c
@@ -1240,6 +1240,7 @@ unsigned long do_mmap(struct file *file,
1240
error_just_free:
1241
up_write(&nommu_region_sem);
1242
error:
1243
+ mas_destroy(&mas);
1244
if (region->vm_file)
1245
fput(region->vm_file);
1246
kmem_cache_free(vm_region_jar, region);
@@ -1250,7 +1251,6 @@ unsigned long do_mmap(struct file *file,
1250
1251
1252
sharing_violation:
1253
- mas_destroy(&mas);
1254
pr_warn("Attempt to share mismatched mappings\n");
1255
ret = -EINVAL;
1256
goto error;
0 commit comments