brcompat: Fix sign of return value.
authorBen Pfaff <blp@nicira.com>
Sun, 15 Mar 2009 03:49:58 +0000 (20:49 -0700)
committerBen Pfaff <blp@nicira.com>
Sun, 15 Mar 2009 03:49:58 +0000 (20:49 -0700)
Thanks to Justin for pointing this out.

datapath/brcompat.c

index 10d8c8cece24232fa257910dfbe82e5363a78fdb..709c838cc9b16a7ca2fb6fa41699c9425055898c 100644 (file)
@@ -405,7 +405,7 @@ int brc_send_port_add_del(struct net_device *dev, struct net_device *port,
                dev = __dev_get_by_index(&init_net, dev_ifindex);
                port = __dev_get_by_index(&init_net, port_ifindex);
                if (!dev || !port)
-                       return ENODEV;
+                       return -ENODEV;
 
                if (add && port->br_port)
                        return port->br_port->dev ? 0 : -EBUSY;