Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-15119 tgt: BUG at tgt_brw_read+0x16bf/0x1d80
[fs/lustre-release.git]
/
lustre
/
target
/
tgt_handler.c
diff --git
a/lustre/target/tgt_handler.c
b/lustre/target/tgt_handler.c
index
3f3a3b5
..
5e97949
100644
(file)
--- a/
lustre/target/tgt_handler.c
+++ b/
lustre/target/tgt_handler.c
@@
-1948,6
+1948,9
@@
static int check_read_checksum(struct niobuf_local *local_nb, int npages,
enum cksum_types cksum_type;
loff_t start, end;
+ if (unlikely(npages <= 0))
+ return 0;
+
/* unlikely to happen and only if resend does not occur due to cksum
* control failure on Client */
if (unlikely(server_cksum == client_cksum)) {