]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: Fix wrong sizeof
authorJean Delvare <khali@linux-fr.org>
Fri, 2 Oct 2009 16:55:19 +0000 (09:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Oct 2009 18:32:48 +0000 (11:32 -0700)
commit b607bd900051efc3308c4edc65dd98b34b230021 upstream.

Which is why I have always preferred sizeof(struct foo) over
sizeof(var).

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/iseries_veth.c

index c46864d626b28e44b7e25669ea319d1f74a2dd53..e1db78a33074376dfc5c51d9eac131242fd20056 100644 (file)
@@ -495,7 +495,7 @@ static void veth_take_cap_ack(struct veth_lpar_connection *cnx,
                           cnx->remote_lp);
        } else {
                memcpy(&cnx->cap_ack_event, event,
-                      sizeof(&cnx->cap_ack_event));
+                      sizeof(cnx->cap_ack_event));
                cnx->state |= VETH_STATE_GOTCAPACK;
                veth_kick_statemachine(cnx);
        }