SECURITY: Explicitly include required slab.h header file.
Subsystems (2)
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>.
Signed-off-by Robert P. J. Day <[email protected]>
---
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
@@ -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
@@ -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
========================================================================