]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI PPTT: Fix coding mistakes in a couple of sizeof() calls
authorJean-Marc Eurin <jmeurin@google.com>
Wed, 2 Apr 2025 00:15:42 +0000 (17:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:50:58 +0000 (07:50 +0200)
commit4c97ba1b0b98cec6d5759048d3b4509428be12ba
tree122dfb486691be2bd2ae7810f9f9935c6bb27006
parentfcf524eaff201d4bcb01e400d68d17a4825c5007
ACPI PPTT: Fix coding mistakes in a couple of sizeof() calls

[ Upstream commit 7ab4f0e37a0f4207e742a8de69be03984db6ebf0 ]

The end of table checks should be done with the structure size,
but 2 of the 3 similar calls use the pointer size.

Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>
Link: https://patch.msgid.link/20250402001542.2600671-1-jmeurin@google.com
[ rjw: Subject edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/pptt.c