summaryrefslogtreecommitdiff
path: root/crypto/algif_aead.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2017-04-22 17:22:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-20 14:27:00 +0200
commit21cb4dc57b3ca380abda80dbdac7eaff9c565ba7 (patch)
tree2037f0ef4976a2ebaa00ebea93f2b5b263acebea /crypto/algif_aead.c
parentcbaeca8251bbe77c646954c7655b661f0fef8170 (diff)
block: fix blk_integrity_register to use template's interval_exp if not 0
commit 2859323e35ab5fc42f351fbda23ab544eaa85945 upstream. When registering an integrity profile: if the template's interval_exp is not 0 use it, otherwise use the ilog2() of logical block size of the provided gendisk. This fixes a long-standing DM linear target bug where it cannot pass integrity data to the underlying device if its logical block size conflicts with the underlying device's logical block size. Reported-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/algif_aead.c')
0 files changed, 0 insertions, 0 deletions