aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_pscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c
index f6921bf99113..82e78d72fdb6 100644
--- a/drivers/target/target_core_pscsi.c
+++ b/drivers/target/target_core_pscsi.c
@@ -840,14 +840,14 @@ static void pscsi_bi_endio(struct bio *bio, int error)
840 bio_put(bio); 840 bio_put(bio);
841} 841}
842 842
843static inline struct bio *pscsi_get_bio(int sg_num) 843static inline struct bio *pscsi_get_bio(int nr_vecs)
844{ 844{
845 struct bio *bio; 845 struct bio *bio;
846 /* 846 /*
847 * Use bio_malloc() following the comment in for bio -> struct request 847 * Use bio_malloc() following the comment in for bio -> struct request
848 * in block/blk-core.c:blk_make_request() 848 * in block/blk-core.c:blk_make_request()
849 */ 849 */
850 bio = bio_kmalloc(GFP_KERNEL, sg_num); 850 bio = bio_kmalloc(GFP_KERNEL, nr_vecs);
851 if (!bio) { 851 if (!bio) {
852 pr_err("PSCSI: bio_kmalloc() failed\n"); 852 pr_err("PSCSI: bio_kmalloc() failed\n");
853 return NULL; 853 return NULL;