kernel: add bcm47xxpart patches sent for 4.5 merge window
[openwrt/staging/mkresin.git] / target / linux / bcm53xx / patches-4.1 / 901-mtd-bcm47xxpart-workaround-for-Asus-RT-AC87U-asus-pa.patch
index c1dfa920131a0cb74bc1a39e92c752ad3bb589d3..774a186263492b95df63eb4044ad6d738a37db13 100644 (file)
@@ -22,7 +22,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  
  #include <uapi/linux/magic.h>
  
-@@ -135,6 +136,17 @@ static int bcm47xxpart_parse(struct mtd_
+@@ -132,6 +133,17 @@ static int bcm47xxpart_parse(struct mtd_
                        break;
                }
  
@@ -38,5 +38,5 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 +              }
 +
                /* Read beginning of the block */
-               if (mtd_read(master, offset, BCM47XXPART_BYTES_TO_READ,
-                            &bytes_read, (uint8_t *)buf) < 0) {
+               err = mtd_read(master, offset, BCM47XXPART_BYTES_TO_READ,
+                              &bytes_read, (uint8_t *)buf);