diff options
author | Vladimir Oltean <[email protected]> | 2020-09-18 04:07:27 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-09-18 13:52:34 -0700 |
commit | d1cc0e932039cc40357baf037ab403d1d2e228fd (patch) | |
tree | c156bc3b48b2cb7e4a68b360c3765c943bacff64 /lib/mpi/mpiutil.c | |
parent | c9d4b2cf16021d1f65e764f4035d7d1616e3bda3 (diff) |
net: mscc: ocelot: error checking when calling ocelot_init()
ocelot_init() allocates memory, resets the switch and polls for a status
register, things which can fail. Stop probing the driver in that case,
and propagate the error result.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Horatiu Vultur <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Tested-by: Alexandre Belloni <[email protected]>
Reviewed-by: Alexandre Belloni <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions