]> 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:44:36 +0000 (07:44 +0200)
commit26671f662edad8db81f8195f10323540688a588a
tree38a1d2d68c8e4a6323c2d8c61e3260a5f434a69f
parent5a8389206cd4116a964cccda9e9bec1415b3eb06
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