From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 28 Jul 2017 19:31:21 +0300 From: Johan Hedberg To: Dan Carpenter Cc: Marcel Holtmann , Larry Finger , Gustavo Padovan , linux-bluetooth@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] Bluetooth: btrtl: Fix a error code in rtl_load_config() Message-ID: <20170728163121.GA1151@x1c.home> References: <20170728144111.chywkq2527puieo6@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170728144111.chywkq2527puieo6@mwanda> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Dan, On Fri, Jul 28, 2017, Dan Carpenter wrote: > We accidentally return success if the kmemdup() fails. It results in > a NULL dereference in the caller. > > Fixes: 1110a2dbe698 ("Bluetooth: btrtl: Add RTL8822BE Bluetooth device") > Signed-off-by: Dan Carpenter Applied to bluetooth-next. Thanks. Johan