projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9545f4e
)
cxgb4: allocate enough data in t4_memory_rw()
author
Dan Carpenter
<
[email protected]
>
Mon, 8 Oct 2012 07:12:11 +0000
(10:12 +0300)
committer
David S. Miller
<
[email protected]
>
Mon, 8 Oct 2012 07:13:16 +0000
(
03:13
-0400)
MEMWIN0_APERTURE is the size in bytes.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index 137a24438d9c76532d691158913a9066d38146f0..e914c4113b8d85c4a24936c3650be7c2c6f34fb6 100644
(file)
--- a/
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
+++ b/
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
@@
-417,7
+417,7
@@
static int t4_memory_rw(struct adapter *adap, int mtype, u32 addr, u32 len,
if ((addr & 0x3) || (len & 0x3))
return -EINVAL;
- data = vmalloc(MEMWIN0_APERTURE
/sizeof(__be32)
);
+ data = vmalloc(MEMWIN0_APERTURE);
if (!data)
return -ENOMEM;