+12
−3
Loading
In case collect_driver() returns immediately due to missing modalias attr, an empty $driver will be passed to check_for_driver() causing grep inside to fail. Further false-positive then leads to call to linux_bind_driver() as it's not able to locate proper paths for given driver. To avoid this, make sure collect_driver() always attempts to fallback to a driver setup.sh supports for a target device. Signed-off-by:Michal Berger <michallinuxstuff@gmail.com> Change-Id: Id5631a731910f60b63c6afb3a412575bb69d784a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11747 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>