ofproto-dpif: fix an ovs crash when dpif_recv_set returns error
authorAndy Zhou <azhou@nicira.com>
Sun, 3 Aug 2014 23:16:40 +0000 (16:16 -0700)
committerAndy Zhou <azhou@nicira.com>
Mon, 4 Aug 2014 19:37:23 +0000 (12:37 -0700)
commit9bcefb956d8f712eded13e40e27e55f885c362f2
tree490eeaeb343fc8ae864062849d47a81988e7343d
parentedff57a8b0b3c33351e6bbd8746313eaee8cd20c
ofproto-dpif: fix an ovs crash when dpif_recv_set returns error

When dpif_recv_set returns an error, close_dpif_backer gets called,
which in term calls recirc_id_pool_destroy, which can lead to a crash
since recirc_id_pool_create() was not called before this patch.

Reported-by: Mukesh Hira <mhira@vmware.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c