diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-14 11:43:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-14 11:43:24 +0200 |
commit | d9bc226584fa1a9319f4f26882f046e94cfa032a (patch) | |
tree | 6ac4aefdf9a87cf4b6d34f0cf308d9a765930989 /fs | |
parent | b7718454f937f50f44f98c1222f5135eaef29132 (diff) | |
parent | 5a20b7cb0d8d3ee490a8e088dc2584aa782e3355 (diff) |
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
Diffstat (limited to 'fs')
-rw-r--r-- | fs/smb/client/cifsencrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/cifsencrypt.c b/fs/smb/client/cifsencrypt.c index 6322f0f68a17..b0473c2567fe 100644 --- a/fs/smb/client/cifsencrypt.c +++ b/fs/smb/client/cifsencrypt.c @@ -129,7 +129,7 @@ static ssize_t cifs_shash_xarray(const struct iov_iter *iter, ssize_t maxsize, for (j = foffset / PAGE_SIZE; j < npages; j++) { len = min_t(size_t, maxsize, PAGE_SIZE - offset); p = kmap_local_page(folio_page(folio, j)); - ret = crypto_shash_update(shash, p, len); + ret = crypto_shash_update(shash, p + offset, len); kunmap_local(p); if (ret < 0) return ret; |