projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e80be0b
)
zd1211rw: document need for kmalloc cast
author
Joe Perches
<joe@perches.com>
Sun, 28 Nov 2010 00:02:59 +0000
(
00:02
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 29 Nov 2010 01:26:24 +0000
(17:26 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/zd1211rw/zd_chip.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/zd1211rw/zd_chip.c
b/drivers/net/wireless/zd1211rw/zd_chip.c
index 87a95bcfee5735f593489cf52011068f4d92e0e1..dd0bb0cc22d994a067ae4b7b42259320eb1c7167 100644
(file)
--- a/
drivers/net/wireless/zd1211rw/zd_chip.c
+++ b/
drivers/net/wireless/zd1211rw/zd_chip.c
@@
-117,6
+117,7
@@
int zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr
/* Allocate a single memory block for values and addresses. */
count16 = 2*count;
+ /* zd_addr_t is __nocast, so the kmalloc needs an explicit cast */
a16 = (zd_addr_t *) kmalloc(count16 * (sizeof(zd_addr_t) + sizeof(u16)),
GFP_KERNEL);
if (!a16) {