X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=block%2Fblk-crypto.c;h=09fcb18fa778fad699cc4ac52894814d22adfd0a;hb=d643a990891abdb0fd93ff3740a6f7222fbb756c;hp=5da43f0973b46b2b0a043c1c88ce258f75a6d859;hpb=e2f0c565ec70eb9e4d3b98deb5892af62de8b98d;p=linux-2.6-microblaze.git diff --git a/block/blk-crypto.c b/block/blk-crypto.c index 5da43f0973b4..09fcb18fa778 100644 --- a/block/blk-crypto.c +++ b/block/blk-crypto.c @@ -280,7 +280,7 @@ bool __blk_crypto_bio_prep(struct bio **bio_ptr) * Success if device supports the encryption context, or if we succeeded * in falling back to the crypto API. */ - if (blk_ksm_crypto_cfg_supported(bio->bi_disk->queue->ksm, + if (blk_ksm_crypto_cfg_supported(bio->bi_bdev->bd_disk->queue->ksm, &bc_key->crypto_cfg)) return true;