Unverified Commit 2bccc5bd authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10017 liquidio: Adjust a NULL pointer handling path in lio_vf_rep_copy_packet

parents d53c1f7c 1b156af6
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -272,13 +272,12 @@ lio_vf_rep_copy_packet(struct octeon_device *oct,
				pg_info->page_offset;
			memcpy(skb->data, va, MIN_SKB_SIZE);
			skb_put(skb, MIN_SKB_SIZE);
		}

			skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags,
					pg_info->page,
					pg_info->page_offset + MIN_SKB_SIZE,
					len - MIN_SKB_SIZE,
					LIO_RXBUFFER_SZ);
		}
	} else {
		struct octeon_skb_page_info *pg_info =
			((struct octeon_skb_page_info *)(skb->cb));