]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ethernet] Avoid false positive Coverity warning
authorMichael Brown <mcb30@ipxe.org>
Sat, 17 Aug 2019 16:30:09 +0000 (17:30 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 17 Aug 2019 16:30:09 +0000 (17:30 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/ethernet.c

index 707bdf90508927fcd21eb1a82306a3f58f0d08de..3fcdafe6deac34d68bc7439208e105011a3d004f 100644 (file)
@@ -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 = ( &ethhdr->h_protocol + 1 );
+               llc_proto = iobuf->data;
                *net_proto = *llc_proto;
        }