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 0ad2507 commit c8a3e63Copy full SHA for c8a3e63
fs/proc/vmcore.c
@@ -1524,14 +1524,17 @@ int vmcore_add_device_dump(struct vmcoredd_data *data)
1524
pr_warn_once("Unexpected adding of device dump\n");
1525
if (vmcore_open) {
1526
ret = -EBUSY;
1527
- goto out_err;
+ goto unlock;
1528
}
1529
1530
list_add_tail(&dump->list, &vmcoredd_list);
1531
vmcoredd_update_size(data_size);
1532
mutex_unlock(&vmcore_mutex);
1533
return 0;
1534
1535
+unlock:
1536
+ mutex_unlock(&vmcore_mutex);
1537
+
1538
out_err:
1539
vfree(buf);
1540
vfree(dump);
0 commit comments