lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151208204525.GA85727@athens>
Date:	Wed, 9 Dec 2015 04:45:25 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Tom Herbert <tom@...bertland.com>
Cc:	kbuild-all@...org, davem@...emloft.net, netdev@...r.kernel.org,
	jesse@...ira.com, linville@...driver.com, kernel-team@...com
Subject: [PATCH] geneve: fix noderef.cocci warnings

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 <tom@...bertland.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---

 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))
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ