Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: [PATCH bluetooth-next] 6lowpan: iphc: fix invalid case handling From: Marcel Holtmann In-Reply-To: <1456473967-26721-1-git-send-email-aar@pengutronix.de> Date: Fri, 26 Feb 2016 00:12:14 -0800 Cc: linux-wpan@vger.kernel.org, Linux Bluetooth , kernel@pengutronix.de, dan.carpenter@oracle.com Message-Id: <1838E9E0-1AC3-42D9-B553-68BBAD85E1C1@holtmann.org> References: <1456473967-26721-1-git-send-email-aar@pengutronix.de> To: Alexander Aring Sender: linux-wpan-owner@vger.kernel.org List-ID: Hi Alex, > 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 > Signed-off-by: Alexander Aring > --- > net/6lowpan/iphc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel