Re: [PATCH] mailbox: PCC: handle parse error

2018-09-14 Thread Rafael J. Wysocki
On Monday, August 27, 2018 10:55:41 PM CEST Al Stone wrote: > On 08/27/2018 01:19 PM, David Arcari wrote: > > 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

Re: [PATCH] mailbox: PCC: handle parse error

2018-08-27 Thread Al Stone
On 08/27/2018 01:19 PM, David Arcari wrote: > 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

[PATCH] mailbox: PCC: handle parse error

2018-08-27 Thread David Arcari
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: 8f8027c5f9