[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4f248ff1-9972-a519-f7ff-c540a7e9f71e@oracle.com>
Date: Mon, 31 Jul 2017 13:09:42 -0700
From: Santosh Shilimkar <santosh.shilimkar@...cle.com>
To: Keerthy <j-keerthy@...com>
Cc: ssantosh@...nel.org, m-karicheri2@...com, t-kristo@...com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] soc: ti: knav: Add a NULL pointer check for kdev in
knav_pool_create
On 7/30/2017 9:31 PM, Keerthy wrote:
> knav_pool_create is an exported function. In the event of a call
> before knav_queue_probe, we encounter a NULL pointer dereference
> in the following line. Hence return -EPROBE_DEFER to the caller till
> the kdev pointer is non-NULL.
>
> Signed-off-by: Keerthy <j-keerthy@...com>
> ---
>
> Changes in v2:
>
> * Fixed returning an int to returning pointer.
Thanks. Will add it to the queue.
Powered by blists - more mailing lists