From: Ben Pfaff Date: Tue, 26 May 2009 17:40:09 +0000 (-0700) Subject: datapath: Fix return value when ODP_FLOW_PUT fails to allocate a flow. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dade934419e76c705dc040a0b3e8d0cd01b48755;p=openvswitch datapath: Fix return value when ODP_FLOW_PUT fails to allocate a flow. Noticed by Justin. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 8e9a5602..d4dac856 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -872,6 +872,7 @@ retry: } /* Allocate flow. */ + error = -ENOMEM; flow = kmem_cache_alloc(flow_cache, GFP_KERNEL); if (flow == NULL) goto error;