aboutsummaryrefslogtreecommitdiffstats
path: root/lib/strncpy_from_user.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2019-11-08 03:49:11 +0000
committerMatthew Wilcox (Oracle) <[email protected]>2019-11-09 04:48:40 +0000
commit82a22311b7a68a78709699dc8c098953b70e4fd2 (patch)
tree60accb87ad1602692b42931ede847c3d1239478b /lib/strncpy_from_user.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff)
downloadkernel-82a22311b7a68a78709699dc8c098953b70e4fd2.tar.gz
kernel-82a22311b7a68a78709699dc8c098953b70e4fd2.zip
XArray: Fix xas_pause at ULONG_MAX
If we were unlucky enough to call xas_pause() when the index was at ULONG_MAX (or a multi-slot entry which ends at ULONG_MAX), we would wrap the index back around to 0 and restart the iteration from the beginning. Use the XAS_BOUNDS state to indicate that we should just stop the iteration. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions