commit | 10f702627e139e21465f4c9d44f63527bbca163c | [log] [tgz] |
---|---|---|
author | Xishi Qiu <qiuxishi@huawei.com> | Thu Nov 05 18:51:21 2015 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Nov 05 19:34:48 2015 -0800 |
tree | 706cd924235c129fcf30bf766c038025fd227525 | |
parent | e0d57714394f5e2ce4e2f9bbebf48e3c7a7fd3be [diff] |
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>