Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ub: fix up the conversion to sg_init_table()

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Cc: "Oliver Pinter" <oliver.pntr@gmail.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Pete Zaitcev and committed by
Linus Torvalds
541645be f6a4c8bd

+1 -1
+1 -1
drivers/block/ub.c
··· 657 657 if ((cmd = ub_get_cmd(lun)) == NULL) 658 658 return -1; 659 659 memset(cmd, 0, sizeof(struct ub_scsi_cmd)); 660 - sg_init_table(cmd->sgv, UB_MAX_REQ_SG); 661 660 662 661 blkdev_dequeue_request(rq); 663 662 ··· 667 668 /* 668 669 * get scatterlist from block layer 669 670 */ 671 + sg_init_table(&urq->sgv[0], UB_MAX_REQ_SG); 670 672 n_elem = blk_rq_map_sg(lun->disk->queue, rq, &urq->sgv[0]); 671 673 if (n_elem < 0) { 672 674 /* Impossible, because blk_rq_map_sg should not hit ENOMEM. */