diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-01-17 17:45:12 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-01-17 22:32:24 -0500 |
commit | 430f24f94c8a174d411a550d7b5529301922e67a (patch) | |
tree | 7a23f31ee6f3bca6a09e1ce0c23fa62d4e65c5e1 /sound/atmel | |
parent | 82a958497dc9120e0e8043da82273baedd255aaf (diff) | |
download | linux-430f24f94c8a174d411a550d7b5529301922e67a.tar.bz2 |
XArray: Fix infinite loop with entry at ULONG_MAX
If there is an entry at ULONG_MAX, xa_for_each() will overflow the
'index + 1' in xa_find_after() and wrap around to 0. Catch this case
and terminate the loop by returning NULL.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/atmel')
0 files changed, 0 insertions, 0 deletions