Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev-linux: Initialize link speed in error conditions.
Clang's static analyzer noted that the output from netdev_linux_get_speed_locked can be checked even if this function doesn't set any values. Now we always set those values to a sane default in all cases. Fixes: 19cffe3 ("netdev-linux: Avoid deadlock in netdev_get_speed.") Signed-off-by: Mike Pattrick <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information