commit | 2306f65637079c8922aec15b4ced75ea457e757b | [log] [tgz] |
---|---|---|
author | Alexander Aring <aar@pengutronix.de> | Fri Feb 26 09:06:07 2016 +0100 |
committer | Marcel Holtmann <marcel@holtmann.org> | Fri Feb 26 09:08:15 2016 +0100 |
tree | 059f638c4e1e1a3b38a5748e137cd0e47ce4d900 | |
parent | 395174bb07c1dce58fbf2baa3a01bb69f5103c59 [diff] |
6lowpan: iphc: fix invalid case handling This patch fixes the return value in a case which should never occur. Instead returning "-EINVAL" we return LOWPAN_IPHC_DAM_00 which is invalid on context based addresses. Also change the WARN_ON_ONCE to WARN_ONCE which was suggested by Dan Carpenter. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>