summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-28 00:02:59 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-28 17:26:24 -0800
commit47c05314328d9c40f6006783dc4c1e3080bd2914 (patch)
tree558b72f6ea3c18ec41851cc96712263f001d2351
parente80be0b0ee307a2801e57cf36333d3d659e4bcc6 (diff)
downloadlinux-47c05314328d9c40f6006783dc4c1e3080bd2914.tar.bz2
zd1211rw: document need for kmalloc cast
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/wireless/zd1211rw/zd_chip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_chip.c b/drivers/net/wireless/zd1211rw/zd_chip.c
index 87a95bcfee57..dd0bb0cc22d9 100644
--- 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) {