Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ethernet] Avoid false positive Coverity warning
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Aug 17, 2019
1 parent a5c4148 commit f1e6efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/ethernet.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit f1e6efa

Please sign in to comment.