From fb6bad5bd968d3b2a724a07317cd85470b69e220 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 10 Aug 2009 15:44:22 +0000 Subject: [PATCH] Should have been included in the previous commit (r1034). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1035 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index eaf74cff0..9b528cdae 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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; } /*