From ca7c9d06a21ff6a53c17316158220506e47a0f59 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:07 +0100 Subject: [PATCH] Revert "ALSA: asihpi: Fix potential OOB array access" This reverts commit c373c0fcf52e827b6cbb94457d8d9ce1aff91979. --- sound/pci/asihpi/hpimsgx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/asihpi/hpimsgx.c b/sound/pci/asihpi/hpimsgx.c index 761fc62f6..f7427f8eb 100755 --- a/sound/pci/asihpi/hpimsgx.c +++ b/sound/pci/asihpi/hpimsgx.c @@ -713,7 +713,7 @@ static u16 HPIMSGX__init(struct hpi_message *phm, phr->error = HPI_ERROR_PROCESSING_MESSAGE; return phr->error; } - if (hr.error == 0 && hr.u.s.adapter_index < HPI_MAX_ADAPTERS) { + if (hr.error == 0) { /* the adapter was created successfully save the mapping for future use */ hpi_entry_points[hr.u.s.adapter_index] = entry_point_func;