]> git.baikalelectronics.ru Git - kernel.git/commit
kasan: use IS_ALIGNED in memory_is_poisoned_8()
authorXishi Qiu <qiuxishi@huawei.com>
Fri, 6 Nov 2015 02:51:21 +0000 (18:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commita061a76c1a4fe9de570fed365021d304fd717577
tree706cd924235c129fcf30bf766c038025fd227525
parent1ef563c52a4804420b86314a0e8a615df10149ce
kasan: use IS_ALIGNED in memory_is_poisoned_8()

Use IS_ALIGNED() to determine whether the shadow span two bytes.  It
generates less code and more readable.  Also add some comments in shadow
check functions.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Andrey Konovalov <adech.fo@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/kasan/kasan.c