aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParth Y Shah <sparth1292@gmail.com>2018-08-06 03:10:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-12 03:46:46 -0400
commit0181cfd93c7b09a3fc69ff734e84c49bfe7d9020 (patch)
tree651724d9273248b606cd9bdb098d3edee088ecda
parent02b04d23b2cb134d2bf15a0d97bc9c1976da61ab (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.c2
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 */
21static volatile size_t unconst = 0; 21static volatile size_t unconst;
22static volatile size_t cache_size = 1024; 22static volatile size_t cache_size = 1024;
23static struct kmem_cache *whitelist_cache; 23static struct kmem_cache *whitelist_cache;
24 24