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:
6fe4c6d
)
iseries_veth: Fix wrong parameter given to sizeof call
author
Thomas Jarosch
<
[email protected]
>
Thu, 17 Nov 2011 10:33:52 +0000
(10:33 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 21 Nov 2011 19:56:35 +0000
(14:56 -0500)
"remote_list" is of type
struct dma_chunk remote_list[VETH_MAX_FRAMES_PER_MSG];
Probably a copy'n'paste error.
Signed-off-by: Thomas Jarosch <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/ibm/iseries_veth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ibm/iseries_veth.c
b/drivers/net/ethernet/ibm/iseries_veth.c
index 4326681df382ac461c24e21eb6a6ea0ee64d4426..acc31af6594a243b91d7c9f666363581f68ddf05 100644
(file)
--- a/
drivers/net/ethernet/ibm/iseries_veth.c
+++ b/
drivers/net/ethernet/ibm/iseries_veth.c
@@
-1421,7
+1421,7
@@
static void veth_receive(struct veth_lpar_connection *cnx,
/* FIXME: do we need this? */
memset(local_list, 0, sizeof(local_list));
- memset(remote_list, 0, sizeof(
VETH_MAX_FRAMES_PER_MSG
));
+ memset(remote_list, 0, sizeof(
remote_list
));
/* a 0 address marks the end of the valid entries */
if (senddata->addr[startchunk] == 0)