]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up of-fix-overflow-bug-in-string-property-parsing-functions.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Nov 2014 06:30:51 +0000 (15:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Nov 2014 06:30:51 +0000 (15:30 +0900)
fixes it for 3.10 and 3.14

queue-3.10/of-fix-overflow-bug-in-string-property-parsing-functions.patch
queue-3.14/of-fix-overflow-bug-in-string-property-parsing-functions.patch

index 0f87d74abe9af692ab157e196c80578b32d56a49..cbc40c85be4b5de32703da1bf0419fc7f14613ff 100644 (file)
@@ -35,9 +35,9 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
  drivers/of/base.c     |   88 ++++++++++++--------------------------------------
- drivers/of/selftest.c |   6+++++++++++++++++++++++++++++++++---
+ drivers/of/selftest.c |   66 ++++++++++++++++++++++++++++++++++---
  include/linux/of.h    |   84 +++++++++++++++++++++++++++++++++++++++--------
- 3 files changed, 151 insertions(+), 85 deletions(-)
+ 3 files changed, 152 insertions(+), 86 deletions(-)
 
 --- a/drivers/of/base.c
 +++ b/drivers/of/base.c
@@ -248,6 +248,15 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  }
  
  static int __init of_selftest(void)
+@@ -167,7 +221,7 @@ static int __init of_selftest(void)
+       pr_info("start of selftest - you will see error messages\n");
+       of_selftest_parse_phandle_with_args();
+-      of_selftest_property_match_string();
++      of_selftest_property_string();
+       pr_info("end of selftest - %s\n", selftest_passed ? "PASS" : "FAIL");
+       return 0;
+ }
 --- a/include/linux/of.h
 +++ b/include/linux/of.h
 @@ -252,14 +252,12 @@ extern int of_property_read_u64(const st
index 66a85a80a84f6263fa6130075c2e1c68828f677a..c759a299bc6c19837e6ac30ddb2c3ffdfaf46a17 100644 (file)
@@ -35,10 +35,10 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
  drivers/of/base.c                           |   88 +++++++---------------------
- drivers/of/selftest.c                       |   6++++++++++++++++++--
+ drivers/of/selftest.c                       |   66 +++++++++++++++++++--
  drivers/of/testcase-data/tests-phandle.dtsi |    2 
  include/linux/of.h                          |   84 ++++++++++++++++++++++----
- 4 files changed, 153 insertions(+), 85 deletions(-)
+ 4 files changed, 154 insertions(+), 86 deletions(-)
 
 --- a/drivers/of/base.c
 +++ b/drivers/of/base.c
@@ -249,6 +249,15 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  }
  
  static void __init of_selftest_parse_interrupts(void)
+@@ -379,7 +433,7 @@ static int __init of_selftest(void)
+       pr_info("start of selftest - you will see error messages\n");
+       of_selftest_parse_phandle_with_args();
+-      of_selftest_property_match_string();
++      of_selftest_property_string();
+       of_selftest_parse_interrupts();
+       of_selftest_parse_interrupts_extended();
+       of_selftest_match_node();
 --- a/drivers/of/testcase-data/tests-phandle.dtsi
 +++ b/drivers/of/testcase-data/tests-phandle.dtsi
 @@ -32,7 +32,9 @@