Thread (15 messages) flat view 15 messages, 6 authors, 2012-11-16

[PATCH 1/4] pinctrl: dove: Prevent NULL dereference if of_match_device returns NULL

From: Thomas Petazzoni <hidden>
Date: 2012-11-15 07:35:22
Also in: lkml

Dear Axel Lin,

On Thu, 15 Nov 2012 12:51:36 +0800, Axel Lin wrote:
of_match_device() may return NULL.

Signed-off-by: Axel Lin <redacted>
Could you detail under what conditions of_match_device() may return
NULL in the specific case of this driver? This of_match_device() call
is using the same dove_pinctrl_of_match array that is used to ->probe()
this driver. So I don't see how you can get into ->probe() without
having a matching entry.

Am I missing something?

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help