Thread (1 message) 1 message, 1 author, 2012-10-06

Re: [PATCH] i2c-s3c2410: Fix potential NULL pointer dereference

From: Wolfram Sang <hidden>
Date: 2012-10-06 13:37:24
Also in: linux-i2c

On Tue, Sep 18, 2012 at 02:18:48PM +0530, Sachin Kamat wrote:
of_match_node() returns NULL if a device_node does not have
a matching of_match structure. Thus the return value needs to be
checked for NULL to avoid NULL pointer dereferencing.
I am missing how the driver can be matched to the device if there is no
fitting device node?

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help