ACPI, APEI: Use the correct variable for sizeof()
authorJakob Koschel <jakobkoschel@gmail.com>
Sat, 19 Mar 2022 21:54:47 +0000 (22:54 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Mar 2022 17:52:21 +0000 (18:52 +0100)
commitfa3416509605621b8db263b0ee9aaf85285aee4b
tree47d15a8049cb66e3034a604c7fc8012fe5058df4
parent242ba6656d604aa8dc87451fc08143cb28d5a587
ACPI, APEI: Use the correct variable for sizeof()

While the original code is valid, it is not the obvious choice for the
sizeof() call and in preparation to limit the scope of the list iterator
variable the sizeof should be changed to the size of the variable
being allocated.

Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/apei-base.c