Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700361

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

From Santosh Shilimkar <santosh.shilimkar@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] soc: ti: knav: Add a NULL pointer check for kdev in knav_pool_create
Date 2017-07-31 22:10 +0200
Message-ID <u9paO-2ga-11@gated-at.bofh.it> (permalink)
References <u9aEN-1Ca-7@gated-at.bofh.it>
Organization Oracle Corporation

Show all headers | View raw


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@ti.com>
> ---
> 
> Changes in v2:
> 
>    * Fixed returning an int to returning pointer.

Thanks. Will add it to the queue.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] soc: ti: knav: Add a NULL pointer check for kdev in knav_pool_create Keerthy <j-keerthy@ti.com> - 2017-07-31 06:40 +0200
  Re: [PATCH v2] soc: ti: knav: Add a NULL pointer check for kdev in  knav_pool_create Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2017-07-31 22:10 +0200

csiph-web