aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-09-19 16:16:25 +0200
committerDavid S. Miller <davem@davemloft.net>2014-09-22 16:02:34 -0400
commit09f3756bb9a82835b0c2a9b50f36b47aa42f2c61 (patch)
tree42e42132481b8a3f11e4908a31e27878226361b3 /scripts
parentr8169: fix an if condition (diff)
downloadlinux-dev-09f3756bb9a82835b0c2a9b50f36b47aa42f2c61.tar.xz
linux-dev-09f3756bb9a82835b0c2a9b50f36b47aa42f2c61.zip
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 <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions