]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.17-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Jan 2015 20:21:29 +0000 (12:21 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Jan 2015 20:21:29 +0000 (12:21 -0800)
added patches:
brcmfmac-fix-bitmap-malloc-bug-in-msgbuf.patch

queue-3.17/brcmfmac-fix-bitmap-malloc-bug-in-msgbuf.patch [new file with mode: 0644]
queue-3.17/series

diff --git a/queue-3.17/brcmfmac-fix-bitmap-malloc-bug-in-msgbuf.patch b/queue-3.17/brcmfmac-fix-bitmap-malloc-bug-in-msgbuf.patch
new file mode 100644 (file)
index 0000000..9b45696
--- /dev/null
@@ -0,0 +1,30 @@
+From 333c2aa029b847051a2db76a6ca59f699a520030 Mon Sep 17 00:00:00 2001
+From: Hante Meuleman <meuleman@broadcom.com>
+Date: Wed, 3 Dec 2014 21:05:27 +0100
+Subject: brcmfmac: Fix bitmap malloc bug in msgbuf.
+
+From: Hante Meuleman <meuleman@broadcom.com>
+
+commit 333c2aa029b847051a2db76a6ca59f699a520030 upstream.
+
+Reviewed-by: Arend Van Spriel <arend@broadcom.com>
+Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
+Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
+Signed-off-by: Arend van Spriel <arend@broadcom.com>
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c
++++ b/drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c
+@@ -1282,6 +1282,7 @@ int brcmf_proto_msgbuf_attach(struct brc
+       }
+       INIT_WORK(&msgbuf->txflow_work, brcmf_msgbuf_txflow_worker);
+       count = BITS_TO_LONGS(if_msgbuf->nrof_flowrings);
++      count = count * sizeof(unsigned long);
+       msgbuf->flow_map = kzalloc(count, GFP_ATOMIC);
+       if (!msgbuf->flow_map)
+               goto fail;
index 3e95b41d1b03ba891162d383c83563dd417bf12d..39b439634b3678362777619051328189167743d5 100644 (file)
@@ -25,3 +25,4 @@ dm-space-map-metadata-fix-sm_bootstrap_get_nr_blocks.patch
 dm-thin-fix-inability-to-discard-blocks-when-in-out-of-data-space-mode.patch
 dm-thin-fix-missing-out-of-data-space-to-write-mode-transition-if-blocks-are-released.patch
 dm-thin-fix-a-race-in-thin_dtr.patch
+brcmfmac-fix-bitmap-malloc-bug-in-msgbuf.patch