diff options
| author | Alasdair G Kergon <agk@redhat.com> | 2008-07-21 07:00:31 -0400 |
|---|---|---|
| committer | Alasdair G Kergon <agk@redhat.com> | 2008-07-21 07:00:31 -0400 |
| commit | def052d21c4e77975bb75cf212f018ec913f8e2f (patch) | |
| tree | 88a7bcd180f23d33b0e4f7728476b7b241df1f34 /drivers/md | |
| parent | 148acff615b403168cdf39e55bfcfaa6e4a7d233 (diff) | |
dm mpath: fix test for reinstate_path
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>
Diffstat (limited to 'drivers/md')
| -rw-r--r-- | drivers/md/dm-mpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 230d7890ec8a..fea966d66f98 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
| @@ -871,7 +871,7 @@ static int reinstate_path(struct pgpath *pgpath) | |||
| 871 | if (pgpath->path.is_active) | 871 | if (pgpath->path.is_active) |
| 872 | goto out; | 872 | goto out; |
| 873 | 873 | ||
| 874 | if (!pgpath->pg->ps.type) { | 874 | if (!pgpath->pg->ps.type->reinstate_path) { |
| 875 | DMWARN("Reinstate path not supported by path selector %s", | 875 | DMWARN("Reinstate path not supported by path selector %s", |
| 876 | pgpath->pg->ps.type->name); | 876 | pgpath->pg->ps.type->name); |
| 877 | r = -EINVAL; | 877 | r = -EINVAL; |
