From: Ben Pfaff Date: Thu, 1 Jan 2009 18:08:28 +0000 (-0800) Subject: brcompat: Use ENOMEM to indicate out-of-memory (not EINVAL). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3395259734b68b1b51d679c803f732f17e235614;p=openvswitch brcompat: Use ENOMEM to indicate out-of-memory (not EINVAL). --- diff --git a/datapath/brcompat.c b/datapath/brcompat.c index ac117abb..78c83edd 100644 --- a/datapath/brcompat.c +++ b/datapath/brcompat.c @@ -361,7 +361,7 @@ int brc_send_dp_add_del(const char *dp_name, int add) nla_put_failure: err: kfree_skb(skb); - return -EINVAL; + return -ENOMEM; } int brc_send_port_add_del(struct net_device *dev, struct net_device *port,