]> Git Repo - linux.git/commit
mailbox: PCC: handle parse error
authorDavid Arcari <[email protected]>
Mon, 27 Aug 2018 19:19:08 +0000 (15:19 -0400)
committerRafael J. Wysocki <[email protected]>
Mon, 10 Sep 2018 10:54:02 +0000 (12:54 +0200)
commitafd0b1fb22269f48d68fdf269891c653818c8047
tree35c570aa7256f5f6aa8e3a2a4af2690819d79c00
parent11da3a7f84f19c26da6f86af878298694ede0804
mailbox: PCC: handle parse error

acpi_pcc_probe() calls acpi_table_parse_entries_array() but fails
to check for an error return.  This in turn can result in calling
kcalloc() with a negative count as well as emitting the following
misleading erorr message:

[    2.642015] Could not allocate space for PCC mbox channels

Fixes: 8f8027c5f935 (mailbox: PCC: erroneous error message when parsing ACPI PCCT)
Signed-off-by: David Arcari <[email protected]>
Reviewed-by: Al Stone <[email protected]>
Cc: 4.18+ <[email protected]> # 4.18+
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/mailbox/pcc.c
This page took 0.051912 seconds and 4 git commands to generate.