lkml.org 
[lkml]   [2008]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 17/76] ub: fix up the conversion to sg_init_table()
    -stable review patch.  If anyone has any objections, please let us know.
    ---------------------

    From: Pete Zaitcev <zaitcev@redhat.com>

    ---
    drivers/block/ub.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/block/ub.c
    +++ b/drivers/block/ub.c
    @@ -657,7 +657,6 @@ static int ub_request_fn_1(struct ub_lun
    if ((cmd = ub_get_cmd(lun)) == NULL)
    return -1;
    memset(cmd, 0, sizeof(struct ub_scsi_cmd));
    - sg_init_table(cmd->sgv, UB_MAX_REQ_SG);

    blkdev_dequeue_request(rq);

    @@ -668,6 +667,7 @@ static int ub_request_fn_1(struct ub_lun
    /*
    * get scatterlist from block layer
    */
    + sg_init_table(&urq->sgv[0], UB_MAX_REQ_SG);
    n_elem = blk_rq_map_sg(lun->disk->queue, rq, &urq->sgv[0]);
    if (n_elem < 0) {
    /* Impossible, because blk_rq_map_sg should not hit ENOMEM. */
    --


    \
     
     \ /
      Last update: 2008-03-21 23:49    [W:0.022 / U:151.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site