summaryrefslogtreecommitdiffstats
path: root/crypto/hmac.c
diff options
context:
space:
mode:
authormajianpeng <majianpeng@gmail.com>2012-06-12 02:31:10 +0200
committerNeilBrown <neilb@suse.de>2012-07-03 04:09:57 +0200
commit6c0544e255dd6582a9899572e120fb55d9f672a4 (patch)
treef77e75815a54c6af1068dceb6ada1eb51d8501ce /crypto/hmac.c
parentmd/raid5: prefer replacing failed devices over want-replacement devices. (diff)
downloadlinux-6c0544e255dd6582a9899572e120fb55d9f672a4.tar.xz
linux-6c0544e255dd6582a9899572e120fb55d9f672a4.zip
md/raid5: Do not add data_offset before call to is_badblock
In chunk_aligned_read() we are adding data_offset before calling is_badblock. But is_badblock also adds data_offset, so that is bad. So move the addition of data_offset to after the call to is_badblock. This bug was introduced by commit 31c176ecdf3563140e639 md/raid5: avoid reading from known bad blocks. which first appeared in 3.0. So that patch is suitable for any -stable kernel from 3.0.y onwards. However it will need minor revision for most of those (as the comment didn't appear until recently). Cc: stable@vger.kernel.org Signed-off-by: majianpeng <majianpeng@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'crypto/hmac.c')
0 files changed, 0 insertions, 0 deletions