Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit def052d2 authored by Alasdair G Kergon's avatar Alasdair G Kergon
Browse files

dm mpath: fix test for reinstate_path



Fix test for reinstate_path method before attempting to use it.

Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Cc: Julia Lawall <julia@diku.dk>
parent 148acff6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -871,7 +871,7 @@ static int reinstate_path(struct pgpath *pgpath)
	if (pgpath->path.is_active)
		goto out;

	if (!pgpath->pg->ps.type) {
	if (!pgpath->pg->ps.type->reinstate_path) {
		DMWARN("Reinstate path not supported by path selector %s",
		       pgpath->pg->ps.type->name);
		r = -EINVAL;