Return-Path: Sender: "Gustavo F. Padovan" Date: Thu, 29 Sep 2011 15:48:10 -0300 From: Gustavo Padovan To: Waldemar Rymarkiewicz Cc: linux-bluetooth@vger.kernel.org, Marcel Holtmann , Johan Hedberg , Waldemar Rymarkiewicz Subject: Re: [PATCH v2] Bluetooth: Fix possible NULL pointer dereference Message-ID: <20110929184810.GB2605@joana> References: <1316764890-11806-1-git-send-email-waldemar.rymarkiewicz@tieto.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1316764890-11806-1-git-send-email-waldemar.rymarkiewicz@tieto.com> List-ID: Hi Waldemar, * Waldemar Rymarkiewicz [2011-09-23 10:01:30 +0200]: > Checking conn->pending_sec_level if there is no connection leads to potential > null pointer dereference. Don't process pin_code_request_event at all if no > connection exists. > > Signed-off-by: Waldemar Rymarkiewicz > --- > net/bluetooth/hci_event.c | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) Applied, thanks. Gustavo