[PATCH] SECURITY: Explicitly include required slab.h header file.

From: Robert P. J. Day
Date: Thu Mar 13 2008 - 22:55:31 EST



Since these two source files invoke kmalloc(), they should explicitly
include <linux/slab.h>.

Signed-off-by: Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>

---

i wasn't sure who the corrrect recipient of this would be.

security/keys/request_key.c | 1 +
security/keys/request_key_auth.c | 1 +
2 files changed, 2 insertions(+)

diff --git a/security/keys/request_key.c b/security/keys/request_key.c
index 5ecc505..cd7f880 100644
--- a/security/keys/request_key.c
+++ b/security/keys/request_key.c
@@ -16,6 +16,7 @@
#include <linux/kmod.h>
#include <linux/err.h>
#include <linux/keyctl.h>
+#include <linux/slab.h>
#include "internal.h"

/*
diff --git a/security/keys/request_key_auth.c b/security/keys/request_key_auth.c
index e42b525..31ff359 100644
--- a/security/keys/request_key_auth.c
+++ b/security/keys/request_key_auth.c
@@ -15,6 +15,7 @@
#include <linux/sched.h>
#include <linux/err.h>
#include <linux/seq_file.h>
+#include <linux/slab.h>
#include <asm/uaccess.h>
#include "internal.h"

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/