diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2020-01-18 03:00:41 +0000 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <[email protected]> | 2020-01-18 03:33:27 +0000 |
| commit | 19c30f4dd0923ef191f35c652ee4058e91e89056 (patch) | |
| tree | 6080ded903efebfd2c32c21b3dccb2ab96075f4a /lib/strncpy_from_user.c | |
| parent | XArray: Fix infinite loop with entry at ULONG_MAX (diff) | |
| download | kernel-19c30f4dd0923ef191f35c652ee4058e91e89056.tar.gz kernel-19c30f4dd0923ef191f35c652ee4058e91e89056.zip | |
XArray: Fix xa_find_after with multi-index entries
If the entry is of an order which is a multiple of XA_CHUNK_SIZE,
the current detection of sibling entries does not work. Factor out
an xas_sibling() function to make xa_find_after() a little more
understandable, and write a new implementation that doesn't suffer from
the same bug.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions
