chiark / gitweb /
path_id: prevent endless loop for SAS devices on older kernels
authorKay Sievers <kay.sievers@suse.de>
Fri, 26 May 2006 15:35:44 +0000 (17:35 +0200)
committerKay Sievers <kay.sievers@suse.de>
Fri, 26 May 2006 15:35:44 +0000 (17:35 +0200)
extras/path_id/path_id

index a6dfbf1a089dd644ea8e50923cf519b9f6463967..f9b3d5a73fed89fe5d736e81fd8e5ce1a7e39d51 100644 (file)
@@ -252,6 +252,7 @@ handle_fc () {
        fi
        if [ -z "$wwpn" ] ; then
                : no WWPN
        fi
        if [ -z "$wwpn" ] ; then
                : no WWPN
+               D=
                RESULT=1
                return
        fi
                RESULT=1
                return
        fi
@@ -290,6 +291,7 @@ handle_sas () {
        fi
        if [ -z "$phy_address" ] ; then
                : no initiator address
        fi
        if [ -z "$phy_address" ] ; then
                : no initiator address
+               D=
                RESULT=1
                return
        fi
                RESULT=1
                return
        fi
@@ -301,6 +303,7 @@ handle_sas () {
        fi
        if [ -z "$rphy_address" ] ; then
                : no initiator address
        fi
        if [ -z "$rphy_address" ] ; then
                : no initiator address
+               D=
                RESULT=1
                return
        fi
                RESULT=1
                return
        fi