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


Groups > linux.kernel > #1270485

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

Path csiph.com!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Corentin LABBE <clabbe.montjoie@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference
Date Mon, 16 Nov 2015 20:20:01 +0100
Message-ID <qvxtL-2U5-9@gated-at.bofh.it> (permalink)
References <qtUNQ-5ZA-21@gated-at.bofh.it> <qtVgR-6pI-3@gated-at.bofh.it> <qvwR4-2pG-17@gated-at.bofh.it>
X-Original-To Brian Norris <computersforpeace@gmail.com>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=YFRV96EW3F/0jpqkwglp7qE4q0C8iucFST+Jl3I4vsE=; b=vs6/1q174sIfn1S7ZlNjURl9p3mMpXmqs7j1gV//TpY5uwfOkvHAZlo79ZNzuiOn1R fH1J6eCQE/DEYMful+u6BJRSd0AX33uMXlhr7VynohyWE0ABLlHyn8AwQBVGB50AlEWR OZBwG2SznfmGPEGmQW4ICHoaPPlWvnjyiJCToF80m89shsww8T8FBaN8dLOIhd1gEAGn VcCpmMQ3vHc3QQNP/ldbAtqjnul9MyKBXvUvHjLmBiU+2odViVTXH3rG27euLqc9HMws lvh11hqUX4nGTApvg8el+leFNfofh8Po3mm2CZPDEcj/Bc40zet18TB8mpnOHL0ZCNGh DpKA==
X-Received by 10.28.51.135 with SMTP id z129mr11774099wmz.19.1447701137511; Mon, 16 Nov 2015 11:12:17 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 8bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
X-Original-Cc baruch@tkos.co.il, dwmw2@infradead.org, fransklaver@gmail.com, k.kozlowski.k@gmail.com, luis@debethencourt.com, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org
X-Original-Date Mon, 16 Nov 2015 20:12:14 +0100
X-Original-Message-ID <564A2A8E.30506@gmail.com>
X-Original-References <1447314423-31225-1-git-send-email-clabbe.montjoie@gmail.com> <20151112081909.GD24008@pengutronix.de> <20151116183333.GL8456@google.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1270485

Show key headers only | View raw


Le 16/11/2015 19:33, Brian Norris a écrit :
> On Thu, Nov 12, 2015 at 09:19:09AM +0100, Uwe Kleine-König wrote:
>> I really wonder there is no helper
>> function like:
>>
>> 	#define of_sensible_name(dev)	of_match_device(dev->driver->of_match_table, dev)
> 
> How about of_device_get_match_data()?
> 
> It's not exactly what you asked for, but it gets what you need here.
> 
> Brian
> 

I have got the same comment from another thread.
I will use it. Thanks

Regards

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-11-12 08:50 +0100
  Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Frans Klaver <fransklaver@gmail.com> - 2015-11-12 09:10 +0100
    Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Uwe Kleine-König   <u.kleine-koenig@pengutronix.de> - 2015-11-12 09:30 +0100
      Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Frans Klaver <fransklaver@gmail.com> - 2015-11-12 09:40 +0100
        Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Frans Klaver <fransklaver@gmail.com> - 2015-11-12 10:00 +0100
          Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Uwe Kleine-König   <u.kleine-koenig@pengutronix.de> - 2015-11-12 10:10 +0100
        Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Uwe Kleine-König   <u.kleine-koenig@pengutronix.de> - 2015-11-12 10:00 +0100
  Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Uwe Kleine-König   <u.kleine-koenig@pengutronix.de> - 2015-11-12 09:20 +0100
    Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference LABBE Corentin <montjoie.mailing@gmail.com> - 2015-11-12 11:10 +0100
      Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Uwe Kleine-König   <u.kleine-koenig@pengutronix.de> - 2015-11-12 11:20 +0100
    Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Brian Norris <computersforpeace@gmail.com> - 2015-11-16 19:40 +0100
      Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Corentin LABBE <clabbe.montjoie@gmail.com> - 2015-11-16 20:20 +0100

csiph-web