From: Tobias Klauser Date: Fri, 19 Sep 2014 14:16:25 +0000 (+0200) Subject: dm9000: Return an ERR_PTR() in all error conditions of dm9000_parse_dt() X-Git-Tag: fixes-for-v3.18-merge-window~87^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f3756bb9a82835b0c2a9b50f36b47aa42f2c61;p=pandora-kernel.git dm9000: Return an ERR_PTR() in all error conditions of dm9000_parse_dt() In one error condition dm9000_parse_dt() returns NULL, however the return value is checked using IS_ERR() in dm9000_probe(), leading to the error not being properly propagated if CONFIG_OF is not enabled or the device tree data is not available. Fix this by also returning an ERR_PTR() in this case. Fixes: 0b8bf1baabe5 (net: dm9000: Allow instantiation using device tree) Signed-off-by: Tobias Klauser Signed-off-by: David S. Miller --- Reading git-diff-tree failed