Skip to content

Commit d9bc226

Browse files
committed
Merge tag '6.11-rc7-SMB3-client-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fix from Steve French: "Fix for packet signing of write" * tag '6.11-rc7-SMB3-client-fix' of git://git.samba.org/sfrench/cifs-2.6: cifs: Fix signature miscalculation
2 parents b771845 + 5a20b7c commit d9bc226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/cifsencrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static ssize_t cifs_shash_xarray(const struct iov_iter *iter, ssize_t maxsize,
129129
for (j = foffset / PAGE_SIZE; j < npages; j++) {
130130
len = min_t(size_t, maxsize, PAGE_SIZE - offset);
131131
p = kmap_local_page(folio_page(folio, j));
132-
ret = crypto_shash_update(shash, p, len);
132+
ret = crypto_shash_update(shash, p + offset, len);
133133
kunmap_local(p);
134134
if (ret < 0)
135135
return ret;

0 commit comments

Comments
 (0)