From mboxrd@z Thu Jan 1 00:00:00 1970 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 0BED0154BFF; Thu, 5 Sep 2024 09:51:12 +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=1725529873; cv=none; b=BCAI7/G181fl5Wvj1VxmlU4II9Ujmklp8cYBuS7Z/pYkjt+14ORhKSzeLlHXmtlWIGy/LbpvD4dxKy9dknp61U7VHJkycy03hSaVlCeBkFi+dEc93yXSJmhGJFBTFqjZny85rfzX1VBsjHoMmPxnwncfJ5oy4IeN8HmL8ctdgLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725529873; c=relaxed/simple; bh=LEPvkJnZNeg4KZ2Z/kJhSfMM3wUhcA/Q4LxFfK3m1ts=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cZbE8Dg8TaHjjFRlyPPXzrY9k8DmD/SsedlL0Bs8BbFlNbQNripSNgRPF0Ey2FnA9yw1rMgoMFpdBE3dLu6eqnb2cUomuHkDfnh9kt/tEG5F0Ur5Hg+SdW7JYImCxULK8xJEmRacIxYu9nKk/os3mw+0E6d7kVRqNQylTqUzf5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e0QwDPAh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="e0QwDPAh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23BC8C4CEC3; Thu, 5 Sep 2024 09:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725529872; bh=LEPvkJnZNeg4KZ2Z/kJhSfMM3wUhcA/Q4LxFfK3m1ts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e0QwDPAhRXM1Ywn0//ThFhLJ4OalKAJq0Eb4P0Ro0nzRMzqBTcmpNJTUBxjHWLkHQ 0UKGdSjqohtuxHdwsdwlomY8smXBp7/xpWnTMMRqeDMP2g9D4pkfNiL1cGZcVzR5L2 jeZxMw4Z9nRi02jgYPHEQ+QTdePrwlcA05thhxgc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jerry Zuo , Zaeem Mohamed , Wayne Lin , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 6.10 169/184] drm/amd/display: Correct the defined value for AMDGPU_DMUB_NOTIFICATION_MAX Date: Thu, 5 Sep 2024 11:41:22 +0200 Message-ID: <20240905093738.937535434@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240905093732.239411633@linuxfoundation.org> References: <20240905093732.239411633@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wayne Lin [ Upstream commit ad28d7c3d989fc5689581664653879d664da76f0 ] [Why & How] It actually exposes '6' types in enum dmub_notification_type. Not 5. Using smaller number to create array dmub_callback & dmub_thread_offload has potential to access item out of array bound. Fix it. Reviewed-by: Jerry Zuo Acked-by: Zaeem Mohamed Signed-off-by: Wayne Lin Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h index 09519b7abf67..5c9d32dff853 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h @@ -50,7 +50,7 @@ #define AMDGPU_DM_MAX_NUM_EDP 2 -#define AMDGPU_DMUB_NOTIFICATION_MAX 5 +#define AMDGPU_DMUB_NOTIFICATION_MAX 6 #define HDMI_AMD_VENDOR_SPECIFIC_DATA_BLOCK_IEEE_REGISTRATION_ID 0x00001A #define AMD_VSDB_VERSION_3_FEATURECAP_REPLAYMODE 0x40 -- 2.43.0