6lowpan: iphc: fix invalid case handling
authorAlexander Aring <aar@pengutronix.de>
Fri, 26 Feb 2016 08:06:07 +0000 (09:06 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 26 Feb 2016 08:08:15 +0000 (09:08 +0100)
commit2306f65637079c8922aec15b4ced75ea457e757b
tree059f638c4e1e1a3b38a5748e137cd0e47ce4d900
parent395174bb07c1dce58fbf2baa3a01bb69f5103c59
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>
net/6lowpan/iphc.c
This page took 0.025788 seconds and 5 git commands to generate.