Should have been included in the previous commit (r1034).
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 10 Aug 2009 15:44:22 +0000 (15:44 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 10 Aug 2009 15:44:22 +0000 (15:44 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1035 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index eaf74cf..9b528cd 100644 (file)
@@ -307,7 +307,8 @@ static u64 srpt_get_ioc_guid(struct ib_device *device)
        WARN_ON(!global_ioc_guid);
        WARN_ON(!device->node_guid);
 
-       return one_guid_per_ioc ? device->node_guid : global_ioc_guid;
+       return one_guid_per_ioc ? be64_to_cpu(device->node_guid)
+               : global_ioc_guid;
 }
 
 /*