Unverified Commit 83f86d69 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents b29a76eb d6f351c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -243,8 +243,8 @@ static int ipheth_rcvbulk_callback_ncm(struct urb *urb)
	while (le16_to_cpu(dpe->wDatagramIndex) != 0 &&
	       le16_to_cpu(dpe->wDatagramLength) != 0) {
		if (le16_to_cpu(dpe->wDatagramIndex) >= urb->actual_length ||
		    le16_to_cpu(dpe->wDatagramIndex) +
		    le16_to_cpu(dpe->wDatagramLength) > urb->actual_length) {
		    le16_to_cpu(dpe->wDatagramLength) > urb->actual_length -
		    le16_to_cpu(dpe->wDatagramIndex)) {
			dev->net->stats.rx_length_errors++;
			return retval;
		}