diff options
author | Kishor Krishna Bhat <kishkris@codeaurora.org> | 2020-07-08 19:12:18 +0530 |
---|---|---|
committer | Kishor Krishna Bhat <kishkris@codeaurora.org> | 2020-07-10 11:16:41 +0530 |
commit | dd9f1b4fb730a90f3c5959acba05fb739482bb99 (patch) | |
tree | f97f0e17455eebb4f61326e2c092ab4ff0446ef9 /drivers/misc | |
parent | e9c0b83e0ab63f8efa01fa0a3ca85edf90611e5c (diff) |
lkdtm: Fix warning with llvm
Fix destination buffer overflow warning
message when llvm is enabled.
Change-Id: I1c1a28f63c8b63772caeea815d3cfbd2b8ae5e8f
Signed-off-by: Kishor Krishna Bhat <kishkris@codeaurora.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/lkdtm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lkdtm.c b/drivers/misc/lkdtm.c index 849592f45889..58f2aef5d236 100644 --- a/drivers/misc/lkdtm.c +++ b/drivers/misc/lkdtm.c @@ -348,7 +348,7 @@ static noinline void corrupt_stack(void) /* Use default char array length that triggers stack protection. */ char data[8]; - memset((void *)data, 0, 64); + memset((void *)data, 0, sizeof(char)*8); } static void execute_location(void *dst) |