mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
dm mpath: fix test for reinstate_path
Fix test for reinstate_path method before attempting to use it. Signed-off-by: Alasdair G Kergon <[email protected]> Cc: Julia Lawall <[email protected]>
This commit is contained in:
parent
148acff615
commit
def052d21c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue