datapath: Make VERIFY_NUL_STRING return a negative error code.
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / net / netlink.h
index c11a170..a23deee 100644 (file)
@@ -11,7 +11,7 @@ static inline int VERIFY_NUL_STRING(struct nlattr *attr)
 {
        return (!attr || (nla_len(attr)
                          && memchr(nla_data(attr), '\0', nla_len(attr)))
-               ? 0 : EINVAL);
+               ? 0 : -EINVAL);
 }
 #else
 static inline int VERIFY_NUL_STRING(struct nlattr *attr)