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:36:26 +0000 (12:36 -0700)
commit084c03f36631f0bb6bec75fd8819409b31594557
tree9e5a20279b82f4fd621bde383ec48ea23ca14e97
parenta7d1bbdcfe49e8c7a5575c9ab46b2ac9e5642ef1
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