6lowpan: iphc: fix invalid case handling
[deliverable/linux.git] / net / 6lowpan / iphc.c
index 06287ac0321115b58f5c2cdbead0b2fc64e54e95..72172514fea063a34ed2e1314d1a996db6a38015 100644 (file)
@@ -811,8 +811,8 @@ static u8 lowpan_compress_ctx_addr(u8 **hc_ptr, const struct in6_addr *ipaddr,
                goto out;
        }
 
-       WARN_ON_ONCE("context found but no address mode matched\n");
-       return -EINVAL;
+       WARN_ONCE(1, "context found but no address mode matched\n");
+       return LOWPAN_IPHC_DAM_00;
 out:
 
        if (sam)
This page took 0.036949 seconds and 5 git commands to generate.