~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to drivers/md/dm-mpath.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-07-11 13:31:31 UTC
  • mfrom: (14.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090711133131-omdhleccno39rayr
Tags: 2.6.29.6-1.1
New upstream kernel and RT patchset release

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
                return -EINVAL;
555
555
        }
556
556
 
 
557
        if (ps_argc > as->argc) {
 
558
                dm_put_path_selector(pst);
 
559
                ti->error = "not enough arguments for path selector";
 
560
                return -EINVAL;
 
561
        }
 
562
 
557
563
        r = pst->create(&pg->ps, ps_argc, as->argv);
558
564
        if (r) {
559
565
                dm_put_path_selector(pst);
700
706
        if (!hw_argc)
701
707
                return 0;
702
708
 
 
709
        if (hw_argc > as->argc) {
 
710
                ti->error = "not enough arguments for hardware handler";
 
711
                return -EINVAL;
 
712
        }
 
713
 
703
714
        m->hw_handler_name = kstrdup(shift(as), GFP_KERNEL);
704
715
        request_module("scsi_dh_%s", m->hw_handler_name);
705
716
        if (scsi_dh_handler_exist(m->hw_handler_name) == 0) {