aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-04 20:23:30 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-07-04 20:23:30 +0200
commit3259ed3ad2517c7a1bec4c9d2e36723511abfae9 (patch)
tree7552ddca04223003b17bab086012556f2cf8cb93 /target
parentcdd4cf1b248386918ca7f6149b0018f830d84d5a (diff)
downloadmaster-187ad058-3259ed3ad2517c7a1bec4c9d2e36723511abfae9.tar.gz
master-187ad058-3259ed3ad2517c7a1bec4c9d2e36723511abfae9.tar.bz2
master-187ad058-3259ed3ad2517c7a1bec4c9d2e36723511abfae9.zip
mvebu: prevent crash in the flash driver in case of a spurious interrupt
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target')
-rw-r--r--target/linux/mvebu/patches-4.4/103-remove-nand-driver-bug.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/mvebu/patches-4.4/103-remove-nand-driver-bug.patch b/target/linux/mvebu/patches-4.4/103-remove-nand-driver-bug.patch
new file mode 100644
index 0000000000..e9cc027b3c
--- /dev/null
+++ b/target/linux/mvebu/patches-4.4/103-remove-nand-driver-bug.patch
@@ -0,0 +1,13 @@
+Remove a BUG() call that would crash on a race condition that should
+otherwise be harmless.
+
+--- a/drivers/mtd/nand/pxa3xx_nand.c
++++ b/drivers/mtd/nand/pxa3xx_nand.c
+@@ -701,7 +701,6 @@ static void handle_data_pio(struct pxa3x
+ default:
+ dev_err(&info->pdev->dev, "%s: invalid state %d\n", __func__,
+ info->state);
+- BUG();
+ }
+
+ /* Update buffer pointers for multi-page read/write */