summaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-12-14 15:57:58 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-15 13:50:49 -0500
commit024778095aa340960fdfd7f7db293290454fbce2 (patch)
tree79afc628f826cb760d3affcf2f208d0a4df22eed /net/sctp
parent245d21190aec547c0de64f70c0e6de871c185a24 (diff)
downloadop-kernel-dev-024778095aa340960fdfd7f7db293290454fbce2.zip
op-kernel-dev-024778095aa340960fdfd7f7db293290454fbce2.tar.gz
net: phy: phylink: Handle NULL fwnode_handle
Unlike the various of_* routines to fetch properties, fwnode_* routines can have an early check against a NULL fwnode_handle reference which makes them return -EINVAL (see fwnode_call_int_op), thus making it virtually impossible to differentiate what type of error is going on. Have an early check in phylink_register_sfp() so we can keep proceeding with the initialization, there is not much we can do without a valid fwnode_handle except return early and treat this similarly to -ENOENT. Fixes: 8fa7b9b6af25 ("phylink: convert to fwnode") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud