]> www.infradead.org Git - users/hch/blktests.git/commitdiff
Fix checking multiple modules error in _have_modules()
authorXiao Liang <xiliang@redhat.com>
Wed, 13 Mar 2019 07:05:11 +0000 (15:05 +0800)
committerOmar Sandoval <osandov@fb.com>
Wed, 13 Mar 2019 07:06:50 +0000 (00:06 -0700)
Signed-off-by: Xiao Liang <xiliang@redhat.com>
common/rc

index 0c354a26ded4812eea2b01d562113d49eb63bd83..71e27c33c935d55f28e1be89c3f83b509eaa495e 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -33,7 +33,7 @@ _have_modules() {
        local module
 
        for module in "$@"; do
-               if ! modprobe -n -q "$1"; then
+               if ! modprobe -n -q "$module"; then
                        missing+=("$module")
                fi
        done