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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <4c87e137d9390a0f4e4b4f5aeb264569fc1e57d9.1491568884.git.maciek.borzecki@gmail.com>
Date:   Fri,  7 Apr 2017 14:47:55 +0200
From:   Maciek Borzecki <maciek.borzecki@...il.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Cc:     Sergio Paracuellos <sergio.paracuellos@...il.com>,
        Maciek Borzecki <maciek.borzecki@...il.com>
Subject: [PATCH] staging wlan-ng: mark PDA buf as __le16

PDA buffer contains little-endian data, clearly mark it as such.

Fixes sparse warnings:
  drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restricted __le16
  drivers/staging/wlan-ng/hfa384x_usb.c:2360:35: warning: cast to restricted __le16
  drivers/staging/wlan-ng/hfa384x_usb.c:2382:44: warning: cast to restricted __le16

Signed-off-by: Maciek Borzecki <maciek.borzecki@...il.com>
---
 drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 6134eba5cad4693997faf8d2d77947ff7e8b0713..64848778834cae1d341c59ecce756d11b218b4c8 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -2316,7 +2316,7 @@ int hfa384x_drvr_ramdl_write(struct hfa384x *hw, u32 daddr, void *buf, u32 len)
 int hfa384x_drvr_readpda(struct hfa384x *hw, void *buf, unsigned int len)
 {
 	int result = 0;
-	u16 *pda = buf;
+	__le16 *pda = buf;
 	int pdaok = 0;
 	int morepdrs = 1;
 	int currpdr = 0;	/* word offset of the current pdr */
-- 
2.9.3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ