summaryrefslogtreecommitdiffstats
path: root/drivers/misc/lkdtm
diff options
context:
space:
mode:
authorParth Y Shah2018-08-06 09:10:57 +0200
committerGreg Kroah-Hartman2018-09-12 09:46:46 +0200
commit0181cfd93c7b09a3fc69ff734e84c49bfe7d9020 (patch)
tree651724d9273248b606cd9bdb098d3edee088ecda /drivers/misc/lkdtm
parentmisc: bh1770glc: remove unused array prox_curr_ma (diff)
downloadkernel-qcow2-linux-0181cfd93c7b09a3fc69ff734e84c49bfe7d9020.tar.gz
kernel-qcow2-linux-0181cfd93c7b09a3fc69ff734e84c49bfe7d9020.tar.xz
kernel-qcow2-linux-0181cfd93c7b09a3fc69ff734e84c49bfe7d9020.zip
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>
Diffstat (limited to 'drivers/misc/lkdtm')
-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 @@
* hardened usercopy checks by added "unconst" to all the const copies,
* and making sure "cache_size" isn't optimized into a const.
*/
-static volatile size_t unconst = 0;
+static volatile size_t unconst;
static volatile size_t cache_size = 1024;
static struct kmem_cache *whitelist_cache;