[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180530192119.eexpge4nke4uovlz@mwanda>
Date: Wed, 30 May 2018 22:21:19 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Colin King <colin.king@...onical.com>
Cc: Jassi Brar <jassisinghbrar@...il.com>, Al Stone <ahs3@...hat.com>,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] mailbox: PCC: check for negative count for parse
failure checking
On Wed, May 30, 2018 at 06:14:29PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The function acpi_table_parse_enties_array can potentially return a
> negative value if parsing fails. Currently the check on the return
> is not checking for errors, so fix this by adding a -ve check too.
>
The impact is that kmallocs would immediately fail and give you a big
stack trace.
regards,
dan carpenter
Powered by blists - more mailing lists