diff options
| author | Alexander Aring <aar@pengutronix.de> | 2016-02-26 09:06:07 +0100 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2016-02-26 09:08:15 +0100 |
| commit | 2306f65637079c8922aec15b4ced75ea457e757b (patch) | |
| tree | 059f638c4e1e1a3b38a5748e137cd0e47ce4d900 /lib/mpi/mpiutil.c | |
| 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>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
