Skip to contentSkip to conversation

SECURITY: Explicitly include required slab.h header file.

PATCH New Robert P. J. Day 1 participant 1 message Mar 14, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SECURITY: Explicitly include required slab.h header file.

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

---

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(+)
security/keys/request_key.c +1 -0
index 5ecc505..cd7f880 100644
@@ -16,6 +16,7 @@
 #include <linux/kmod.h>
 #include <linux/err.h>
 #include <linux/keyctl.h>
+#include <linux/slab.h>
 #include "internal.h"
 
 /*
security/keys/request_key_auth.c +1 -0
index e42b525..31ff359 100644
@@ -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
========================================================================