From: Michael Brown Date: Sat, 17 Aug 2019 16:30:09 +0000 (+0100) Subject: [ethernet] Avoid false positive Coverity warning X-Git-Tag: v1.20.1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1e6efa40be7bee1b29eb7ef7af5d0192edb888a;p=thirdparty%2Fipxe.git [ethernet] Avoid false positive Coverity warning Signed-off-by: Michael Brown --- diff --git a/src/net/ethernet.c b/src/net/ethernet.c index 707bdf905..3fcdafe6d 100644 --- a/src/net/ethernet.c +++ b/src/net/ethernet.c @@ -134,7 +134,7 @@ int eth_pull ( struct net_device *netdev __unused, struct io_buffer *iobuf, * frames, without requiring a full LLC protocol layer. */ if ( eth_is_llc_packet ( ethhdr ) ) { - llc_proto = ( ðhdr->h_protocol + 1 ); + llc_proto = iobuf->data; *net_proto = *llc_proto; }