Subject: [PATCH] geneve: fix noderef.cocci warnings

From: kbuild test robot <[email-masked]>
Date: Wed, 9 Dec 2015 04:45:25 +0800

drivers/net/geneve.c:371:6-12: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

CC: Tom Herbert <[email-masked]>
Signed-off-by: Fengguang Wu <[email-masked]>
---

 geneve.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/geneve.c
+++ b/drivers/net/geneve.c
@@ -368,7 +368,7 @@ static int geneve_udp_encap_recv(struct
 
 	if (geneveh->rco && (gs->flags & GENEVE_F_REMCSUM_RX)) {
 		geneveh = geneve_remcsum(skb, geneveh,
-					 sizeof(geneveh) + opts_len,
+					 sizeof(*geneveh) + opts_len,
 					 !!(gs->flags &
 					    GENEVE_F_REMCSUM_NOPARTIAL));
 		if (unlikely(!geneveh))