Преглед изворни кода

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>
Parth Y Shah пре 7 година
родитељ
комит
0181cfd93c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/misc/lkdtm/usercopy.c

+ 1 - 1
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;