Thread (4 messages) 4 messages, 3 authors, 2017-08-21

[PATCH v2] soc: ti: knav: Add a NULL pointer check for kdev in knav_pool_create

From: arnd@arndb.de (Arnd Bergmann)
Date: 2017-08-21 07:21:10
Also in: lkml

On Mon, Aug 21, 2017 at 7:44 AM, santosh.shilimkar at oracle.com
[off-list ref] wrote:
Hi Arnd,

On 7/30/17 9:31 PM, Keerthy wrote:
quoted
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@ti.com>
---

Changes in v2:

   * Fixed returning an int to returning pointer.
FWIW, Acked-by: Santosh Shilimkar [off-list ref]

Can you please also apply this fix in your fixes branch ?
Applied now, thanks!

      Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help