diff options
author | Parth Y Shah <sparth1292@gmail.com> | 2018-08-06 12:40:57 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-12 09:46:46 +0200 |
commit | 0181cfd93c7b09a3fc69ff734e84c49bfe7d9020 (patch) | |
tree | 651724d9273248b606cd9bdb098d3edee088ecda /drivers/misc/lkdtm | |
parent | 02b04d23b2cb134d2bf15a0d97bc9c1976da61ab (diff) | |
download | linux-0181cfd93c7b09a3fc69ff734e84c49bfe7d9020.tar.bz2 |
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.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 @@ * 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; |