* [PATCH] Fix wrong parameter given to sizeof call
@ 2011-11-17 20:33 Thomas Jarosch
2011-11-21 19:56 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Jarosch @ 2011-11-17 20:33 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
"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 <thomas.jarosch@intra2net.com>
---
drivers/net/ethernet/ibm/iseries_veth.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/ibm/iseries_veth.c b/drivers/net/ethernet/ibm/iseries_veth.c
index 4326681..acc31af 100644
--- 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)
--
1.7.6.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix wrong parameter given to sizeof call
2011-11-17 20:33 [PATCH] Fix wrong parameter given to sizeof call Thomas Jarosch
@ 2011-11-21 19:56 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-11-21 19:56 UTC (permalink / raw)
To: thomas.jarosch; +Cc: netdev
From: Thomas Jarosch <thomas.jarosch@intra2net.com>
Date: Thu, 17 Nov 2011 21:33:52 +0100
> "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 <thomas.jarosch@intra2net.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-21 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-17 20:33 [PATCH] Fix wrong parameter given to sizeof call Thomas Jarosch
2011-11-21 19:56 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.