diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-03-03 16:26:43 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-03-03 16:26:43 -0800 |
| commit | 3162745aad939af6b8bc00951d1344ee872526a9 (patch) | |
| tree | 150c456d817aec3ecc6f88c3b66fc84a874719ab /fs/netfs/iterator.c | |
| parent | e778361555713826481be6234fd1aa030bdb035e (diff) | |
| parent | 71562809e401b2f5ad371d99ce0323e988406fd6 (diff) | |
| download | linux-3162745aad939af6b8bc00951d1344ee872526a9.tar.gz linux-3162745aad939af6b8bc00951d1344ee872526a9.tar.bz2 linux-3162745aad939af6b8bc00951d1344ee872526a9.zip | |
Merge tag '6.3-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
Pull more cifs updates from Steve French:
- xfstest generic/208 fix (memory leak)
- minor netfs fix (to address smatch warning)
- a DFS fix for stable
- a reconnect race fix
- two multichannel fixes
- RDMA (smbdirect) fix
- two additional writeback fixes from David
* tag '6.3-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
cifs: Fix memory leak in direct I/O
cifs: prevent data race in cifs_reconnect_tcon()
cifs: improve checking of DFS links over STATUS_OBJECT_NAME_INVALID
iov: Fix netfs_extract_user_to_sg()
cifs: Fix cifs_write_back_from_locked_folio()
cifs: reuse cifs_match_ipaddr for comparison of dstaddr too
cifs: match even the scope id for ipv6 addresses
cifs: Fix an uninitialised variable
cifs: Add some missing xas_retry() calls
Diffstat (limited to 'fs/netfs/iterator.c')
| -rw-r--r-- | fs/netfs/iterator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c index f00d43b8ac0a..e9a45dea748a 100644 --- a/fs/netfs/iterator.c +++ b/fs/netfs/iterator.c @@ -134,7 +134,7 @@ static ssize_t netfs_extract_user_to_sg(struct iov_iter *iter, npages = DIV_ROUND_UP(off + len, PAGE_SIZE); sg_max -= npages; - for (; npages < 0; npages--) { + for (; npages > 0; npages--) { struct page *page = *pages; size_t seg = min_t(size_t, PAGE_SIZE - off, len); |
