mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] SECURITY:  Explicitly include required slab.h header file.
@ 2008-03-14  2:55 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2008-03-14  2:55 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton


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

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

---

  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
========================================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-14  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14  2:55 [PATCH] SECURITY: Explicitly include required slab.h header file Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®