]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/dm-mpath.c
[SCSI] scsi_dh: fix kconfig related build errors
[linux-2.6-omap-h63xx.git] / drivers / md / dm-mpath.c
index e8f704aa46f299d016a52a0130643314cd825ec8..9f7302d4878d25e3baf43989d21bbbf97e5fea8c 100644 (file)
@@ -664,6 +664,8 @@ static int parse_hw_handler(struct arg_set *as, struct multipath *m)
        request_module("scsi_dh_%s", m->hw_handler_name);
        if (scsi_dh_handler_exist(m->hw_handler_name) == 0) {
                ti->error = "unknown hardware handler type";
+               kfree(m->hw_handler_name);
+               m->hw_handler_name = NULL;
                return -EINVAL;
        }
        consume(as, hw_argc - 1);