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:
parent
2569a5ce16
commit
c678406681
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue