X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fmessage%2Ffusion%2Fmptsas.c;h=dd239bdbfcb4a0877db2ab49aa3c27a81eec7dd1;hb=a8a07fffe4ecab7b77a4009ed317361385616aec;hp=ffee6f781e30f6a25537bba1ed44f379aee137fd;hpb=1bf25e78af317e6d5d9b5594dfeb0036e0d589d6;p=karo-tx-linux.git diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index ffee6f781e30..dd239bdbfcb4 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -2235,10 +2235,10 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, } /* do we need to support multiple segments? */ - if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { + if (bio_segments(req->bio) > 1 || bio_segments(rsp->bio) > 1) { printk(MYIOC_s_ERR_FMT "%s: multiple segments req %u %u, rsp %u %u\n", - ioc->name, __func__, req->bio->bi_vcnt, blk_rq_bytes(req), - rsp->bio->bi_vcnt, blk_rq_bytes(rsp)); + ioc->name, __func__, bio_segments(req->bio), blk_rq_bytes(req), + bio_segments(rsp->bio), blk_rq_bytes(rsp)); return -EINVAL; }