diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-12-07 15:34:28 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-12-07 15:34:28 +0000 |
commit | 8e738da02c77b69d2fa8c1ef52faf2af6388b916 (patch) | |
tree | ab3580332d8134c023a550f443fd0da45837ac72 /target/linux/brcm47xx/patches-3.10/020-mtd-bcm47xxpart-handle-malloc-failures.patch | |
parent | dc6171c73454e1ed25a89e2bc5b5c7730aa38c3d (diff) | |
download | upstream-8e738da02c77b69d2fa8c1ef52faf2af6388b916.tar.gz upstream-8e738da02c77b69d2fa8c1ef52faf2af6388b916.tar.bz2 upstream-8e738da02c77b69d2fa8c1ef52faf2af6388b916.zip |
brcm47xx: remove kernel 3.10
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43535
Diffstat (limited to 'target/linux/brcm47xx/patches-3.10/020-mtd-bcm47xxpart-handle-malloc-failures.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.10/020-mtd-bcm47xxpart-handle-malloc-failures.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/020-mtd-bcm47xxpart-handle-malloc-failures.patch b/target/linux/brcm47xx/patches-3.10/020-mtd-bcm47xxpart-handle-malloc-failures.patch deleted file mode 100644 index ad24b5993d..0000000000 --- a/target/linux/brcm47xx/patches-3.10/020-mtd-bcm47xxpart-handle-malloc-failures.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 99b1d1887fee36ef9ff5d2ee24f0cf3e8c172104 Mon Sep 17 00:00:00 2001 -From: Hauke Mehrtens <hauke@hauke-m.de> -Date: Sun, 13 Oct 2013 22:53:49 +0200 -Subject: [PATCH] mtd: bcm47xxpart: handle malloc failures - -Handle return NULL in malloc. - -Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> -Signed-off-by: Brian Norris <computersforpeace@gmail.com> ---- - drivers/mtd/bcm47xxpart.c | 7 +++++++ - 1 file changed, 7 insertions(+) - ---- a/drivers/mtd/bcm47xxpart.c -+++ b/drivers/mtd/bcm47xxpart.c -@@ -71,7 +71,14 @@ static int bcm47xxpart_parse(struct mtd_ - /* Alloc */ - parts = kzalloc(sizeof(struct mtd_partition) * BCM47XXPART_MAX_PARTS, - GFP_KERNEL); -+ if (!parts) -+ return -ENOMEM; -+ - buf = kzalloc(BCM47XXPART_BYTES_TO_READ, GFP_KERNEL); -+ if (!buf) { -+ kfree(parts); -+ return -ENOMEM; -+ } - - /* Parse block by block looking for magics */ - for (offset = 0; offset <= master->size - blocksize; |