diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-08-17 10:57:56 +0400 | 
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-08-17 11:01:08 +0400 | 
| commit | a22ddff8bedfe33eeb1330bbb7ef1fbe007a42c4 (patch) | |
| tree | 61a2eb7fa62f5af10c2b913ca429e6b068b0eb2d /net/openvswitch/datapath.c | |
| parent | 20d5a540e55a29daeef12706f9ee73baf5641c16 (diff) | |
| parent | d9875690d9b89a866022ff49e3fcea892345ad92 (diff) | |
| download | linux-a22ddff8bedfe33eeb1330bbb7ef1fbe007a42c4.tar.xz | |
Merge tag 'v3.6-rc2' into drm-intel-next
Backmerge Linux 3.6-rc2 to resolve a few funny conflicts before we put
even more madness on top:
- drivers/gpu/drm/i915/i915_irq.c: Just a spurious WARN removed in
  -fixes, that has been changed in a variable-rename in -next, too.
- drivers/gpu/drm/i915/intel_ringbuffer.c: -next remove scratch_addr
  (since all their users have been extracted in another fucntion),
  -fixes added another user for a hw workaroudn.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'net/openvswitch/datapath.c')
| -rw-r--r-- | net/openvswitch/datapath.c | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 2c74daa5aca5..d8277d29e710 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -1,5 +1,5 @@  /* - * Copyright (c) 2007-2012 Nicira Networks. + * Copyright (c) 2007-2012 Nicira, Inc.   *   * This program is free software; you can redistribute it and/or   * modify it under the terms of version 2 of the GNU General Public @@ -263,14 +263,15 @@ err:  static int queue_gso_packets(int dp_ifindex, struct sk_buff *skb,  			     const struct dp_upcall_info *upcall_info)  { +	unsigned short gso_type = skb_shinfo(skb)->gso_type;  	struct dp_upcall_info later_info;  	struct sw_flow_key later_key;  	struct sk_buff *segs, *nskb;  	int err;  	segs = skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM); -	if (IS_ERR(skb)) -		return PTR_ERR(skb); +	if (IS_ERR(segs)) +		return PTR_ERR(segs);  	/* Queue all of the segments. */  	skb = segs; @@ -279,7 +280,7 @@ static int queue_gso_packets(int dp_ifindex, struct sk_buff *skb,  		if (err)  			break; -		if (skb == segs && skb_shinfo(skb)->gso_type & SKB_GSO_UDP) { +		if (skb == segs && gso_type & SKB_GSO_UDP) {  			/* The initial flow key extracted by ovs_flow_extract()  			 * in this case is for a first fragment, so we need to  			 * properly mark later fragments. @@ -1649,7 +1650,9 @@ static int ovs_vport_cmd_set(struct sk_buff *skb, struct genl_info *info)  	if (!err && a[OVS_VPORT_ATTR_OPTIONS])  		err = ovs_vport_set_options(vport, a[OVS_VPORT_ATTR_OPTIONS]); -	if (!err && a[OVS_VPORT_ATTR_UPCALL_PID]) +	if (err) +		goto exit_unlock; +	if (a[OVS_VPORT_ATTR_UPCALL_PID])  		vport->upcall_pid = nla_get_u32(a[OVS_VPORT_ATTR_UPCALL_PID]);  	reply = ovs_vport_cmd_build_info(vport, info->snd_pid, info->snd_seq,  | 
