Whamcloud - gitweb
LU-10737 misc: Wrong checksum return value 48/31448/2
authorQian Yingjin <qian@ddn.com>
Wed, 28 Feb 2018 09:22:01 +0000 (17:22 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 Mar 2018 19:14:40 +0000 (19:14 +0000)
commit28b8f3d9296d632a37e36c68c6000dc0c5e96e5a
treea664ea6bb1063ad1f97840ba7c0b32966b026efd
parent893e5a99e766ab97e95217b7b201b9d293bed6e0
LU-10737 misc: Wrong checksum return value

In the checksum calculation functions: tgt_checksum_niobuf and
osc_checksum_bulk, it is wrongly taken the error return value
of cfs_crypto_hash_init as the checksum value.
This patch fixes the problem.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I647c402deeab00ec5c6437423b0cab250b42c3e5
Reviewed-on: https://review.whamcloud.com/31448
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osc/osc_request.c
lustre/target/tgt_handler.c