]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dt: protect against NULL matches passed to of_match_node()
authorGrant Likely <grant.likely@secretlab.ca>
Fri, 18 Mar 2011 16:21:29 +0000 (10:21 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 23 Mar 2011 20:55:55 +0000 (14:55 -0600)
commita52f07ecd143baee51623b063be5007585748a4f
tree2d5b66d1074b412e21026af10dd16fb2a681ff62
parent38e9e21dac33082f0440d24aefb3466bb18bfed6
dt: protect against NULL matches passed to of_match_node()

There are a few use cases where it is convenient to pass NULL to
of_match_node() and have it fail gracefully.  The patch adds a null
check to the beginning so taht it does so.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/base.c