lkml.org 
[lkml]   [2010]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[22/59] dm mpath: fix NULL pointer dereference when path parameters missing
    2.6.32-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Alasdair G Kergon <agk@redhat.com>

    commit 6bbf79a14080a0c61212f53b4b87dc1a99fedf9c upstream.

    multipath_ctr() forgets to return an error after detecting
    missing path parameters. Fix this.

    Signed-off-by: Patrick LoPresti <lopresti@gmail.com>
    Signed-off-by: Alasdair G Kergon <agk@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/md/dm-mpath.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/md/dm-mpath.c
    +++ b/drivers/md/dm-mpath.c
    @@ -691,6 +691,7 @@ static struct priority_group *parse_prio

    if (as->argc < nr_params) {
    ti->error = "not enough path parameters";
    + r = -EINVAL;
    goto bad;
    }




    \
     
     \ /
      Last update: 2010-08-25 01:49    [W:4.167 / U:0.288 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site