projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cxgb4: allocate enough data in t4_memory_rw()
[profile/ivi/kernel-adaptation-intel-automotive.git]
/
drivers
/
net
/
ethernet
/
chelsio
/
cxgb4
/
t4_hw.c
diff --git
a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index
137a244
..
e914c41
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;