umount: fix check for DM changed
delete_dm() returns 0 on success. The check for "r > 0" was likely a copy&paste error from the loopback code where "r > 0" makes sense.
This commit is contained in:
+1
-1
@@ -536,7 +536,7 @@ static int dm_points_list_detach(MountPoint **head, bool *changed) {
|
||||
|
||||
if ((r = delete_dm(m->devnum)) >= 0) {
|
||||
|
||||
if (r > 0 && changed)
|
||||
if (changed)
|
||||
*changed = true;
|
||||
|
||||
mount_point_free(head, m);
|
||||
|
||||
Reference in New Issue
Block a user