diff options
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index e8f704aa46f2..9f7302d4878d 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -664,6 +664,8 @@ static int parse_hw_handler(struct arg_set *as, struct multipath *m) | |||
664 | request_module("scsi_dh_%s", m->hw_handler_name); | 664 | request_module("scsi_dh_%s", m->hw_handler_name); |
665 | if (scsi_dh_handler_exist(m->hw_handler_name) == 0) { | 665 | if (scsi_dh_handler_exist(m->hw_handler_name) == 0) { |
666 | ti->error = "unknown hardware handler type"; | 666 | ti->error = "unknown hardware handler type"; |
667 | kfree(m->hw_handler_name); | ||
668 | m->hw_handler_name = NULL; | ||
667 | return -EINVAL; | 669 | return -EINVAL; |
668 | } | 670 | } |
669 | consume(as, hw_argc - 1); | 671 | consume(as, hw_argc - 1); |