소스 검색

[ethernet] Avoid false positive Coverity warning

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 4 년 전
부모
커밋
f1e6efa40b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/net/ethernet.c

+ 1
- 1
src/net/ethernet.c 파일 보기

@@ -134,7 +134,7 @@ int eth_pull ( struct net_device *netdev __unused, struct io_buffer *iobuf,
134 134
 	 * frames, without requiring a full LLC protocol layer.
135 135
 	 */
136 136
 	if ( eth_is_llc_packet ( ethhdr ) ) {
137
-		llc_proto = ( &ethhdr->h_protocol + 1 );
137
+		llc_proto = iobuf->data;
138 138
 		*net_proto = *llc_proto;
139 139
 	}
140 140
 

Loading…
취소
저장