summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVijay Kumar Pendoti <vpendo@codeaurora.org>2014-08-12 20:35:44 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:51:53 -0700
commit7f055e49d5b23bba1980a22ecc2062f36e7a12ba (patch)
tree6023192583a29fbde5f81271a87aedf6b70678b7 /include
parentfb89f1cbee6adc6c54cea3fada0a07cec6640e21 (diff)
dtc: add integer overflow checks in fdt header
Protect against integer overflows caused by malformed fdt headers. CRs-Fixed: 749977 Change-Id: I51d87038f520bc761b163d291b0138c513c69a33 Signed-off-by: Vijay Kumar Pendoti <vpendo@codeaurora.org> Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libfdt_env.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h
index 2a663c6bb428..b01d2944ebdd 100644
--- a/include/linux/libfdt_env.h
+++ b/include/linux/libfdt_env.h
@@ -1,6 +1,7 @@
#ifndef _LIBFDT_ENV_H
#define _LIBFDT_ENV_H
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/byteorder.h>