commit | 9fcced8ec324e06094b7a717ef22dace8d4f5b52 | [log] [tgz] |
---|---|---|
author | Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> | Fri Jul 12 20:58:18 2019 +0200 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Thu Jul 18 16:37:13 2019 -0500 |
tree | 8afb0fdd3ae4c87d9cd880e1e137eff2fb8f9efd | |
parent | 0649be554841f85106c5e3b6607f533e49ed987b [diff] |
cmd: mdio: prevent data abort when no mdio bus is found Calling 'mdio read ...' currently leads to a data abort when no mdio bus is found. To fix this, check if 'bus' is a valid pointer before accessing it. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Tested-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>