]> 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)
commit1f3c1a3ed383b25e1ae43477f5a7682a2cee8033
tree706cd924235c129fcf30bf766c038025fd227525
parent66a5f0197fcabb7b2290892b5fec8726c4d930f2
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