aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/364-brcmfmac-cleanup-a-sizeof.patch
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-05-26 12:14:34 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-05-26 12:14:34 +0000
commit565eac46b6389f3bd83c92e7a67b2a2e1482636c (patch)
tree5da196627213967f0a836b43d7e5f1b551b95c07 /package/kernel/mac80211/patches/364-brcmfmac-cleanup-a-sizeof.patch
parent5e5c0edd7e0109a37ee18fdaf95f372b54bf1756 (diff)
downloadupstream-565eac46b6389f3bd83c92e7a67b2a2e1482636c.tar.gz
upstream-565eac46b6389f3bd83c92e7a67b2a2e1482636c.tar.bz2
upstream-565eac46b6389f3bd83c92e7a67b2a2e1482636c.zip
mac80211: backport today's brcmfmac changes
It should improve msgbuf throughput (PCIe devices like BCM43602). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45767
Diffstat (limited to 'package/kernel/mac80211/patches/364-brcmfmac-cleanup-a-sizeof.patch')
-rw-r--r--package/kernel/mac80211/patches/364-brcmfmac-cleanup-a-sizeof.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/364-brcmfmac-cleanup-a-sizeof.patch b/package/kernel/mac80211/patches/364-brcmfmac-cleanup-a-sizeof.patch
new file mode 100644
index 0000000000..d26e118d77
--- /dev/null
+++ b/package/kernel/mac80211/patches/364-brcmfmac-cleanup-a-sizeof.patch
@@ -0,0 +1,23 @@
+From: Dan Carpenter <dan.carpenter@oracle.com>
+Date: Thu, 7 May 2015 12:59:19 +0300
+Subject: [PATCH] brcmfmac: cleanup a sizeof()
+
+"flowrings" and "*flowrings" are both pointers so this always returns
+sizeof(void *) and the current code works fine. But "*flowrings" is
+intended here and static checkers complain, so lets change it.
+
+Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
+Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
+---
+
+--- a/drivers/net/wireless/brcm80211/brcmfmac/pcie.c
++++ b/drivers/net/wireless/brcm80211/brcmfmac/pcie.c
+@@ -1617,7 +1617,7 @@ static void brcmf_pcie_setup(struct devi
+ bus->msgbuf->commonrings[i] =
+ &devinfo->shared.commonrings[i]->commonring;
+
+- flowrings = kcalloc(devinfo->shared.nrof_flowrings, sizeof(flowrings),
++ flowrings = kcalloc(devinfo->shared.nrof_flowrings, sizeof(*flowrings),
+ GFP_KERNEL);
+ if (!flowrings)
+ goto fail;