Skip to content

Commit

Permalink
iseries_veth: Fix wrong parameter given to sizeof call
Browse files Browse the repository at this point in the history
"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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Jarosch authored and David S. Miller committed Nov 21, 2011
1 parent 6fe4c6d commit ba9bb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ibm/iseries_veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ba9bb43

Please sign in to comment.