From: Jesse Gross Date: Fri, 27 Jul 2012 10:19:40 +0000 (+0000) Subject: Revert "openvswitch: potential NULL deref in sample()" X-Git-Tag: v3.6-rc1~68^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6081030769f23c83c0564e993be146db568bf68b;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git Revert "openvswitch: potential NULL deref in sample()" This reverts commit 5b3e7e6cb5771bedda51cdb6f715d1da8cd9e644. 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 Signed-off-by: Jesse Gross Signed-off-by: David S. Miller --- diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index 320fa0e..f3f96ba 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c @@ -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); }