datapath: Fix return value when ODP_FLOW_PUT fails to allocate a flow.
authorBen Pfaff <blp@nicira.com>
Tue, 26 May 2009 17:40:09 +0000 (10:40 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 26 May 2009 17:40:09 +0000 (10:40 -0700)
Noticed by Justin.

datapath/datapath.c

index 8e9a5602054b179863ac96b53793aeb63de13f9d..d4dac8561943d967bf8c65390d31d484e7a72c25 100644 (file)
@@ -872,6 +872,7 @@ retry:
                }
 
                /* Allocate flow. */
+               error = -ENOMEM;
                flow = kmem_cache_alloc(flow_cache, GFP_KERNEL);
                if (flow == NULL)
                        goto error;