brcompat: Use ENOMEM to indicate out-of-memory (not EINVAL).
authorBen Pfaff <blp@nicira.com>
Thu, 1 Jan 2009 18:08:28 +0000 (10:08 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 1 Jan 2009 18:10:07 +0000 (10:10 -0800)
datapath/brcompat.c

index ac117abbe5e571d65f163b0a30907c3bf7497d75..78c83edd57b43bedb475de892d2f4a731dff440c 100644 (file)
@@ -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,