On 04/30/2015 07:32 PM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- > drivers/md/dm-mpath.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c > index 6395347..01e5f8e 100644 > --- a/drivers/md/dm-mpath.c > +++ b/drivers/md/dm-mpath.c > @@ -732,6 +732,9 @@ static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m) > return 0; > > m->hw_handler_name = kstrdup(dm_shift_arg(as), GFP_KERNEL); > + if (!m->hw_handler_name) > + return -ENOMEM; > + > if (!try_then_request_module(scsi_dh_handler_exist(m->hw_handler_name), > "scsi_dh_%s", m->hw_handler_name)) { > ti->error = "unknown hardware handler type"; > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxx +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html