From dade934419e76c705dc040a0b3e8d0cd01b48755 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 26 May 2009 10:40:09 -0700 Subject: [PATCH] datapath: Fix return value when ODP_FLOW_PUT fails to allocate a flow. Noticed by Justin. --- datapath/datapath.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2