aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-04-28 20:51:12 +0000
committerYury Norov <[email protected]>2022-06-03 13:52:58 +0000
commite041e0ac53dd52d2d201aa87edc3adaca1085299 (patch)
tree6c77b6ff337b35827d55e3d1770798e815ff97ea /lib/bitmap.c
parentinclude/linux/find: Fix documentation (diff)
downloadkernel-e041e0ac53dd52d2d201aa87edc3adaca1085299.tar.gz
kernel-e041e0ac53dd52d2d201aa87edc3adaca1085299.zip
lib/bitmap: extend comment for bitmap_(from,to)_arr32()
On LE systems bitmaps are naturally ordered, therefore we can potentially use bitmap_copy routines when converting from 32-bit arrays, even if host system is 64-bit. But it may lead to out-of-bond access due to unsafe typecast, and the bitmap_(from,to)_arr32 comment doesn't explain that clearly CC: Alexander Gordeev <[email protected]> CC: Andy Shevchenko <[email protected]> CC: Christian Borntraeger <[email protected]> CC: Claudio Imbrenda <[email protected]> CC: David Hildenbrand <[email protected]> CC: Heiko Carstens <[email protected]> CC: Janosch Frank <[email protected]> CC: Rasmus Villemoes <[email protected]> CC: Sven Schnelle <[email protected]> CC: Vasily Gorbik <[email protected]> Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions