> > > + sg_cnt = dma_map_sg(hba->host->dma_dev, payload->sg_list, > > payload->sg_cnt, dir); > > + if (unlikely(!sg_cnt)) > > + return -ENOMEM; > > + sg_list = payload->sg_list; > > + data_len = payload->payload_len; > > + } > Isn't bsg_map_buffer does that for you already? > For both request & reply? Answering my own question - no it doesn't... Thanks, Avri > > Thanks, > Avri