Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60810307 authored by Jesse Gross's avatar Jesse Gross Committed by David S. Miller
Browse files

Revert "openvswitch: potential NULL deref in sample()"



This reverts commit 5b3e7e6c.

The problem that the original commit was attempting to fix can
never happen in practice because validation is done one a per-flow
basis rather than a per-packet basis.  Adding additional checks at
runtime is unnecessary and inconsistent with the rest of the code.

CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJesse Gross <jesse@nicira.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 505fbcf0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -325,9 +325,6 @@ static int sample(struct datapath *dp, struct sk_buff *skb,
		}
	}

	if (!acts_list)
		return 0;

	return do_execute_actions(dp, skb, nla_data(acts_list),
						 nla_len(acts_list), true);
}