aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libsas')
-rw-r--r--drivers/scsi/libsas/sas_expander.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index 55cbd0180159..f42b0e15410f 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -2163,10 +2163,10 @@ int sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy,
2163 } 2163 }
2164 2164
2165 /* do we need to support multiple segments? */ 2165 /* do we need to support multiple segments? */
2166 if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { 2166 if (bio_segments(req->bio) > 1 || bio_segments(rsp->bio) > 1) {
2167 printk("%s: multiple segments req %u %u, rsp %u %u\n", 2167 printk("%s: multiple segments req %u %u, rsp %u %u\n",
2168 __func__, req->bio->bi_vcnt, blk_rq_bytes(req), 2168 __func__, bio_segments(req->bio), blk_rq_bytes(req),
2169 rsp->bio->bi_vcnt, blk_rq_bytes(rsp)); 2169 bio_segments(rsp->bio), blk_rq_bytes(rsp));
2170 return -EINVAL; 2170 return -EINVAL;
2171 } 2171 }
2172 2172