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


Groups > linux.kernel > #1569431

Re: [PATCH] I2c: busses - Fix possible NULL derefrence.

From Thierry Reding <thierry.reding@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] I2c: busses - Fix possible NULL derefrence.
Date 2017-01-30 08:20 +0100
Message-ID <t5epP-15B-3@gated-at.bofh.it> (permalink)
References <t5co1-8ip-3@gated-at.bofh.it> <t5co1-8ip-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Jan 30, 2017 at 10:33:07AM +0530, Shailendra Verma wrote:
> of_device_get_match_data could return NULL, and so can cause
> a NULL pointer dereference later.
> 
> Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
> ---
>  drivers/i2c/busses/i2c-tegra.c |    4 ++++
>  1 file changed, 4 insertions(+)

This will never happen. Any match in the OF table that would cause the
->probe() to occur has a valid .data pointer associated with it.

Thierry

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


Thread

[PATCH] I2c: busses - Fix possible NULL derefrence. Shailendra Verma <shailendra.v@samsung.com> - 2017-01-30 06:10 +0100
  Re: [PATCH] I2c: busses - Fix possible NULL derefrence. Thierry Reding <thierry.reding@gmail.com> - 2017-01-30 08:20 +0100
    Re: [PATCH] I2c: busses - Fix possible NULL derefrence. Uwe Kleine-König          <u.kleine-koenig@pengutronix.de> - 2017-01-30 09:30 +0100
      Re: [PATCH] I2c: busses - Fix possible NULL derefrence. Thierry Reding <thierry.reding@gmail.com> - 2017-01-30 10:00 +0100
        Re: [PATCH] I2c: busses - Fix possible NULL derefrence. Uwe Kleine-König          <u.kleine-koenig@pengutronix.de> - 2017-01-30 12:20 +0100
          Re: [PATCH] I2c: busses - Fix possible NULL derefrence. Thierry Reding <thierry.reding@gmail.com> - 2017-01-30 12:30 +0100

csiph-web