summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch')
-rw-r--r--dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch b/dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch
new file mode 100644
index 000000000000..28b1ef97c7f0
--- /dev/null
+++ b/dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch
@@ -0,0 +1,13 @@
+the part array is declared as part[2], so trying to index [2] isn't going to work
+
+--- a/src/mtd.c
++++ b/src/mtd.c
+@@ -786,7 +786,7 @@
+ mp->ecc = 1;
+ }
+
+- if (md->part[1].fd >= 0 && md->part[2].fd >=0)
++ if (md->part[1].fd >= 0)
+ md->flags |= F_MULTICHIP;
+
+ /* if a second partition has been opened, verify that are compatible */