ofproto-dpif: Do not allow recirc_id freed by non-owning ofproto.
authorAlex Wang <alexw@nicira.com>
Mon, 29 Dec 2014 22:10:56 +0000 (14:10 -0800)
committerAlex Wang <alexw@nicira.com>
Tue, 6 Jan 2015 18:54:56 +0000 (10:54 -0800)
commitb2623fdbb31570e7e3e39ac9c074b0978b4dd2dc
tree712448c7930b9354f78a7f976489f0b75cb54ef5
parent3fbbcba77615e6f14d0ee4f8d40b9b4838c2ac20
ofproto-dpif: Do not allow recirc_id freed by non-owning ofproto.

This commit changes the VLOG_ERR (for warning unmatched ofproto)
in ofproto_dpif_free_recirc_id() to an assert statement, so that
recirc_id is never allowed to be freed by non-owning ofproto.

Suggested-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c