aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-08-26 17:47:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-08-26 17:47:14 +0000
commitc75416292a32079c41b33d533620d58a89dcee5e (patch)
tree3082a36cdf6036c29d480ef2e94671fb61d49986 /target/linux/generic/patches-3.9/441-block2mtd_refresh.patch
parentf91d09cabb21d8f6011903174e2bafa3dc7f4f39 (diff)
downloadupstream-c75416292a32079c41b33d533620d58a89dcee5e.tar.gz
upstream-c75416292a32079c41b33d533620d58a89dcee5e.tar.bz2
upstream-c75416292a32079c41b33d533620d58a89dcee5e.zip
kernel: fixing a potential deadlock in block2mtd for kernel 3.6/3.8/3.9
Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 37842
Diffstat (limited to 'target/linux/generic/patches-3.9/441-block2mtd_refresh.patch')
-rw-r--r--target/linux/generic/patches-3.9/441-block2mtd_refresh.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch b/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch
index 11b743db2e..b2b02229e1 100644
--- a/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch
+++ b/target/linux/generic/patches-3.9/441-block2mtd_refresh.patch
@@ -53,8 +53,9 @@
page = page_read(dev->blkdev->bd_inode->i_mapping, index);
- if (IS_ERR(page))
+- return PTR_ERR(page);
+ if (IS_ERR(page)) {
- return PTR_ERR(page);
++ err = PTR_ERR(page);
+ goto done;
+ }