mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
4c0421fa6d
Fix the loop check in netfs_extract_user_to_sg() for extraction from
user-backed iterators to do the body if npages > 0, not if npages < 0
(which it can never be).
This isn't currently used by cifs, which only ever extracts data from BVEC,
KVEC and XARRAY iterators at this level, user-backed iterators having being
decanted into BVEC iterators at a higher level to accommodate the work
being done in a kernel thread.
Found by smatch:
fs/netfs/iterator.c:139 netfs_extract_user_to_sg() warn: unsigned 'npages' is never less than zero.
Fixes:
|
||
---|---|---|
.. | ||
buffered_read.c | ||
internal.h | ||
io.c | ||
iterator.c | ||
Kconfig | ||
main.c | ||
Makefile | ||
objects.c | ||
stats.c |