From patchwork Tue Mar 19 15:46:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 13596808 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ADF0651BB; Tue, 19 Mar 2024 15:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710863173; cv=none; b=UkAzK4qiCzxAFGjrdlExCbFVpxueN0Dan2+/3SZxnfPGebJ2TZ0GlZnET8vwCIMm8xRWFwTDi4XKv60iBt/7RPeyHLcO3lnDEA0WpHQMHbExfxU2nNW53u7GY2fxYlR9Gd8NGHPCVsBFNkBmdqeyKxpDKIZUdcmQUa3e6uLKJOw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710863173; c=relaxed/simple; bh=da+1hNRTyMVfcsK6G0HeO+cvAgOIHHK1/aJWC87nXEc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UAM80J6ER0rw75770w2qngxMp8cUbhZ/PYc9E0nt1OVKeFrox9D4ZxjzP5MHZNLnmHU9yiQaCo5xMAq4oxrr6m1juyH7EFPlwf4jPJJZtaZ0v5Tqiu55A1j2CWjdOHZrtsIhDjDmrgUQ+0VhqpWBBy6iVluG9LrkX6Z32CB/PzQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bodD7nte; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bodD7nte" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DC4AC433C7; Tue, 19 Mar 2024 15:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710863173; bh=da+1hNRTyMVfcsK6G0HeO+cvAgOIHHK1/aJWC87nXEc=; h=From:To:Cc:Subject:Date:From; b=bodD7nte+cWTXLzKlp4OpxNchhZl1Z5lZKGTRvetAOgNT3xBADYx+Qqg0XtXc+q/a 11bjFRauPsJDMRgdZZEi7nF43811z3r5CIh3f4P2HHwb2y3YR90aicNnKjTa8OqoLa +AmU4pVR3jGEl4El2H6yNuLOZHz34w28Fp2larTKRvRizXRkStFQl1xO5dvdsNBibr YipGaBkgRgMVRSc7a0meuT/XubgB+ufe7lCYLDOd0z56E0ZisCT4xGHwmf+jmP2FiH 8a4iHzWL5/K4nsF0aFnhnDR/PDpFX+B7qBh+koc5rMn8XP3QSeUYQujm1uocd/IlLs 1pMyqjJPZWXDA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rmbfQ-000000000eT-15Pm; Tue, 19 Mar 2024 16:46:20 +0100 From: Johan Hovold To: Marcel Holtmann , Luiz Augusto von Dentz Cc: Zhengping Jiang , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] Bluetooth: qca: fix NULL-deref on non-serdev setup Date: Tue, 19 Mar 2024 16:46:09 +0100 Message-ID: <20240319154611.2492-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Qualcomm Bluetooth controllers can be registered either from a serdev driver or from the Bluetooth line discipline. In the latter case, the HCI UART serdev pointer is NULL, something which the driver needs to handle without crashing. This series fixes one such issue at setup() time which incidentally masked a similar crash at suspend. Fix this in two separate patches so that the latter issue is address in pre-6.2 stable kernels. Johan Johan Hovold (2): Bluetooth: qca: fix NULL-deref on non-serdev suspend Bluetooth: qca: fix NULL-deref on non-serdev setup drivers/bluetooth/hci_qca.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)