]> 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:47:05 +0000 (07:47 +0200)
commit510ba30dd37bb3c9355bc8d44a75eee56cba04f8
tree352eeab80bf68127830ded711c05647e77015151
parentd4444abc1924899d687fa6f393894a7b862f7b57
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