openvswitch: Preallocate reply skb in ovs_vport_cmd_set().
authorJesse Gross <jesse@nicira.com>
Tue, 26 Mar 2013 22:48:38 +0000 (15:48 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 27 Mar 2013 16:07:40 +0000 (09:07 -0700)
commita9341512c372fcc628dabc619898d910a06c54bc
tree0651be3fffbb5b5eb06401a41bb362b95326a4e8
parent330305cc4a6b0cb75c22fc01b8826f0ad755550f
openvswitch: Preallocate reply skb in ovs_vport_cmd_set().

Allocation of the Netlink notification skb can potentially fail
after changing vport configuration.  In general, we try to avoid
this by undoing any change we made but that is difficult for existing
objects.  This avoids the problem by preallocating the buffer (which
is fixed size).

Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c