From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8AEF531F9B1; Sat, 12 Sep 2026 16:12:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789229571; cv=none; b=Fu27Gsv4780/COn7KJ2nD2MWBVNAw1nan8X8Rb00b5sBOVdTx2jX0e9oBlNUr8Gwh4bDrvaU3o4dfDv37Y8GMKSDCDHFiT95rC6vtw1H9Z10wHNrMZGSa1TtcqFNeXByzzH0Xyy7CfykCl7RB0dGyM5MSHdpGAS8m0GA31OUXoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789229571; c=relaxed/simple; bh=oeoBe/LiiaYLiP6QTQEzci/7l2TZgXrwZClQSeYSCj8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Qmt1vqnnFpQr/iqkEPxfmrfVgDg4ey77uwdLhjL4zVqIYXa4dI5hfIZCdHLhCcnvrua/R4M/SNJ3Ru3eONh4sLlLaUOSjroFCZG+O6ODBdi1bnNb6PU2eW1AT6pcAC2DVHt0avadEuBj+71xOtIVcj4WceFUctgdi/qkuA15dqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cYpCPJOb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cYpCPJOb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4638A1F000FF; Sat, 12 Sep 2026 16:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789229570; bh=vcgjWs69noy2CNx/Z2ylrUzStV7yqfLXcJM/aufE9SY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cYpCPJObfT9Mb6H1WflEhlp84GfBSb7JXp9H0InFCe4vEopreFY9JZucgzOAxfir7 KBr7vE4XBn4llCvKze4RgDQaHYtgdOzoPo4mtSYtckNe+TVOHzJYvAEFZyqujGmZtK Ol/yLG0oPCyc2UhdcLDSp1EzxSmaEHzEFcSvqmEI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Evgenii Burenchev , Takashi Iwai , Sasha Levin Subject: [PATCH 6.1 0600/1191] ALSA: hpi: Check transport errors during HPI6000 adapter initialization Date: Sat, 12 Sep 2026 08:55:28 +0200 Message-ID: <20260912065601.724272166@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065548.086904252@linuxfoundation.org> References: <20260912065548.086904252@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Evgenii Burenchev [ Upstream commit cc15c329663e3ef1aeed0b68e49a5d5ce4ae0d5c ] create_adapter_obj() retrieves adapter information by calling hpi6000_message_response_sequence(). This function reports transport-level errors through its return value and DSP-reported errors via hr0.error. The current code only checks hr0.error, causing transport-level errors to be ignored. As a result, adapter initialization may continue with an invalid response. Check the return value of hpi6000_message_response_sequence() before examining hr0.error. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 719f82d3987a ("ALSA: Add support of AudioScience ASI boards") Signed-off-by: Evgenii Burenchev Link: https://patch.msgid.link/20260708141147.18253-1-evg28bur@yandex.ru Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/asihpi/hpi6000.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/pci/asihpi/hpi6000.c b/sound/pci/asihpi/hpi6000.c index 88d902997b749..3457d80a2ad9f 100644 --- a/sound/pci/asihpi/hpi6000.c +++ b/sound/pci/asihpi/hpi6000.c @@ -537,6 +537,11 @@ static short create_adapter_obj(struct hpi_adapter_obj *pao, hr1.size = sizeof(hr1); error = hpi6000_message_response_sequence(pao, 0, &hm, &hr0); + if (error) { + HPI_DEBUG_LOG(ERROR, "message transport error %d\n", + error); + return error; + } if (hr0.error) { HPI_DEBUG_LOG(DEBUG, "message error %d\n", hr0.error); return hr0.error; -- 2.53.0