Fix wrong parameter given to sizeof call
Subsystems (2)
PATCH 1/1 Fix wrong parameter given to sizeof call
"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]>
--- drivers/net/ethernet/ibm/iseries_veth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/ibm/iseries_veth.c +1 -1
@@ -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 )
Signature · 1 line
1.7.6.4
From: Thomas Jarosch <[email protected]>
Date: Thu, 17 Nov 2011 21:33:52 +0100
Quoted 7 lines
"
remote_list" is of typestruct
dma_chunkremote_list[VETH_MAX_FRAMES_PER_MSG];Probably a copy'n'paste error.
Signed-off-by Thomas Jarosch <[email protected]>
Applied, thanks.