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


Groups > linux.kernel > #1334459

Re: [PATCH] davinci:Fix possible NULL pointer deference in the function davinci_gpio_probe

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] davinci:Fix possible NULL pointer deference in the function davinci_gpio_probe
Date 2016-02-15 14:40 +0100
Message-ID <r2rxF-1BY-21@gated-at.bofh.it> (permalink)
References <qXTuz-2P5-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] davinci:Fix possible NULL pointer deference in the  function davinci_gpio_probe Linus Walleij <linus.walleij@linaro.org> - 2016-02-15 14:40 +0100

csiph-web