lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1500450686-16317-1-git-send-email-chen.lin5@zte.com.cn>
Date:   Wed, 19 Jul 2017 15:51:26 +0800
From:   Chen Lin <chen.lin5@....com.cn>
To:     linux-kernel@...r.kernel.org
Cc:     zbr@...emap.net, jiang.biao2@....com.cn, chen.lin5@....com.cn
Subject: [PATCH] w1:fix byteorder of W1_READ_ROM id under big-endian cpu

Signed-off-by: Chen Lin <chen.lin5@....com.cn>
Reviewed-by: Jiang Biao <jiang.biao2@....com.cn>
---
 drivers/w1/w1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 95ea7e6..c531545 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -979,7 +979,7 @@ void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb
 			mutex_unlock(&dev->bus_mutex);
 
 			if (rv == 8 && rn)
-				cb(dev, rn);
+				cb(dev, le64_to_cpu(rn));
 
 			break;
 		}
-- 
1.8.3.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ