diff options
author | Parth Y Shah <sparth1292@gmail.com> | 2018-08-06 03:10:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-12 03:46:46 -0400 |
commit | 0181cfd93c7b09a3fc69ff734e84c49bfe7d9020 (patch) | |
tree | 651724d9273248b606cd9bdb098d3edee088ecda | |
parent | 02b04d23b2cb134d2bf15a0d97bc9c1976da61ab (diff) |
misc: lkdtm: fixed static variable initialization
Resolved "ERROR: do not initialise statics to 0"
Signed-off-by: Parth Y Shah <sparth1292@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/lkdtm/usercopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lkdtm/usercopy.c b/drivers/misc/lkdtm/usercopy.c index 9725aed305bb..d8157b8d78c2 100644 --- a/drivers/misc/lkdtm/usercopy.c +++ b/drivers/misc/lkdtm/usercopy.c | |||
@@ -18,7 +18,7 @@ | |||
18 | * hardened usercopy checks by added "unconst" to all the const copies, | 18 | * hardened usercopy checks by added "unconst" to all the const copies, |
19 | * and making sure "cache_size" isn't optimized into a const. | 19 | * and making sure "cache_size" isn't optimized into a const. |
20 | */ | 20 | */ |
21 | static volatile size_t unconst = 0; | 21 | static volatile size_t unconst; |
22 | static volatile size_t cache_size = 1024; | 22 | static volatile size_t cache_size = 1024; |
23 | static struct kmem_cache *whitelist_cache; | 23 | static struct kmem_cache *whitelist_cache; |
24 | 24 | ||