Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278370
b: refs/heads/master
c: f0a98ae
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Dec 6, 2011
1 parent d89c914 commit 29f73f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40e4783ee62ac656a9a0fa3b512b6aee4f07d2d1
refs/heads/master: f0a98ae8db603494d40e8ec9d7d2dfd41c9f6dc8
4 changes: 3 additions & 1 deletion trunk/net/openvswitch/vport.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops,
vport->ops = ops;

vport->percpu_stats = alloc_percpu(struct vport_percpu_stats);
if (!vport->percpu_stats)
if (!vport->percpu_stats) {
kfree(vport);
return ERR_PTR(-ENOMEM);
}

spin_lock_init(&vport->stats_lock);

Expand Down

0 comments on commit 29f73f2

Please sign in to comment.