lkml.org 
[lkml]   [2016]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] davinci:Fix possible NULL pointer deference in the function davinci_gpio_probe
From
On Wed, Feb 3, 2016 at 1:17 AM, Nicholas Krause <xerofoify@gmail.com> wrote:

> This fixes a possible NULL pointer deference in the function,
> davinci_gpio_probe due to the function, gpio2regs being able
> to return a NULL pointer if it rans to get the registers for
> the gpio devices on a davinci board. Furthermore if this does
> arise return -ENXIO to signal callers that this case has arisen
> and avoiding setting the regs or other pointer values on the
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>

Patch applied with Alex' review tag.

Yours,
Linus Walleij

\
 
 \ /
  Last update: 2016-02-15 15:01    [W:0.028 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site