Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [PATCH] bluetooth:Fix variable assignment for switch case in the function a2mp_chan_recv_cb From: Marcel Holtmann In-Reply-To: <1439912990-15773-1-git-send-email-xerofoify@gmail.com> Date: Tue, 18 Aug 2015 10:43:24 -0700 Cc: "Gustavo F. Padovan" , Johan Hedberg , "David S. Miller" , BlueZ development , Network Development , linux-kernel@vger.kernel.org Message-Id: References: <1439912990-15773-1-git-send-email-xerofoify@gmail.com> To: Nicholas Krause Sender: linux-kernel-owner@vger.kernel.org List-ID: Hi Nicholas, > This fixes the issue with not assigning the variable err to the return > value of the call to the function a2mp_command_rej for the switch case > A2MP_COMMAND_REJ as this function call can fail and thus callers of > a2mp_chan_recv_cb should be signaled when this internal function call > fails in order for them to handle this failure when calling the function > a2mp_chan_recv_cb. > > Signed-off-by: Nicholas Krause > --- > net/bluetooth/a2mp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel