Skip to content

Commit

Permalink
dm mpath: fix test for reinstate_path
Browse files Browse the repository at this point in the history
Fix test for reinstate_path method before attempting to use it.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Julia Lawall <julia@diku.dk>
  • Loading branch information
Alasdair G Kergon committed Jul 21, 2008
1 parent 148acff commit def052d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit def052d

Please sign in to comment.