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
master
Felix Fietkau 11 years ago
parent f91d09cabb
commit c75416292a
  1. 3
      target/linux/generic/patches-3.6/441-block2mtd_refresh.patch
  2. 3
      target/linux/generic/patches-3.8/441-block2mtd_refresh.patch
  3. 3
      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;
+ }

@ -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;
+ }

@ -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;
+ }

Loading…
Cancel
Save