kasan: Fix a type conversion error
kasan: Fix a type conversion error

The current KASAN code can not find the following out-of-bounds bugs:

        char *ptr;
        ptr = kmalloc(8, GFP_KERNEL);
        memset(ptr+7, 0, 2);

the cause of the problem is the type conversion error in
*memory_is_poisoned_n* function.  So this patch fix that.

Signed-off-by: Wang Long <e68b6ff438429ca41648c25d0f54e970cf858504@huawei.com>
Acked-by: Andrey Ryabinin <1db0f9e76dd8a9115570382660c6cd919b5a95b9@virtuozzo.com>
Cc: Vladimir Murzin <8a03c763a669ed2bd45a189ce31c156513f9693a@arm.com>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs