diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/keys/key.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/keys/key.c b/security/keys/key.c index 43295ca37b5d..80de8c3e9cc3 100644 --- a/security/keys/key.c +++ b/security/keys/key.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/poison.h> | ||
14 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
15 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
16 | #include <linux/security.h> | 17 | #include <linux/security.h> |
@@ -988,7 +989,7 @@ void unregister_key_type(struct key_type *ktype) | |||
988 | if (key->type == ktype) { | 989 | if (key->type == ktype) { |
989 | if (ktype->destroy) | 990 | if (ktype->destroy) |
990 | ktype->destroy(key); | 991 | ktype->destroy(key); |
991 | memset(&key->payload, 0xbd, sizeof(key->payload)); | 992 | memset(&key->payload, KEY_DESTROY, sizeof(key->payload)); |
992 | } | 993 | } |
993 | } | 994 | } |
994 | 995 | ||