From: Thomas Jarosch Date: Thu, 17 Nov 2011 10:33:52 +0000 (+0000) Subject: iseries_veth: Fix wrong parameter given to sizeof call X-Git-Tag: MMI-PSA29.97-13-9~17939^2~55 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba9bb431d3156a1c5d4d6f0b8c23b5792e9e9f4f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git iseries_veth: 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ibm/iseries_veth.c b/drivers/net/ethernet/ibm/iseries_veth.c index 4326681df382..acc31af6594a 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)