]> git.ipfire.org Git - thirdparty/linux.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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Apr 2025 18:20:56 +0000 (20:20 +0200)
commit7ab4f0e37a0f4207e742a8de69be03984db6ebf0
tree4b004437fd6f45b34aab547eb5163a6b175aff39
parent0af2f6be1b4281385b618cb86ad946eded089ac8
ACPI PPTT: Fix coding mistakes in a couple of sizeof() calls

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>
drivers/acpi/pptt.c