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-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1474998769-29646-2-git-send-email-martin.alonso@zoho.com>
Date:   Tue, 27 Sep 2016 14:52:49 -0300
From:   Martin Alonso <martin.alonso@...o.com>
To:     joe@...ches.com, forest@...ttletooquiet.net,
        gregkh@...uxfoundation.org, pasteka@...si.at
Cc:     devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
        Martin Alonso <martin.alonso@...o.com>
Subject: [PATCH 2/2] staging: vt6656: Make 'rx_rate' u8 instead of u8 *

Change the type and uses of rx_rate.

Signed-off-by: Martin Alonso <martin.alonso@...o.com>
---
 drivers/staging/vt6656/dpc.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/vt6656/dpc.c b/drivers/staging/vt6656/dpc.c
index 655f000..782b7d7 100644
--- a/drivers/staging/vt6656/dpc.c
+++ b/drivers/staging/vt6656/dpc.c
@@ -46,7 +46,8 @@ int vnt_rx_data(struct vnt_private *priv, struct vnt_rcb *ptr_rcb,
 	__le64 *tsf_time;
 	u32 frame_size;
 	int ii, r;
-	u8 *rx_rate, *sq, *sq_3;
+	u8 rx_rate;
+	u8 *sq, *sq_3;
 	u32 wbk_status;
 	u8 *skb_data;
 	u16 *pay_load_len;
@@ -75,7 +76,7 @@ int vnt_rx_data(struct vnt_private *priv, struct vnt_rcb *ptr_rcb,
 
 	skb_data = (u8 *)skb->data;
 
-	rx_rate = skb_data + 5;
+	rx_rate = *(skb_data + 5);
 
 	/* real Frame Size = USBframe_size -4WbkStatus - 4RxStatus */
 	/* -8TSF - 4RSR - 4SQ3 - ?Padding */
@@ -96,7 +97,7 @@ int vnt_rx_data(struct vnt_private *priv, struct vnt_rcb *ptr_rcb,
 	sband = hw->wiphy->bands[hw->conf.chandef.chan->band];
 
 	for (r = RATE_1M; r < MAX_RATE; r++) {
-		if (*rx_rate == rate[r])
+		if (rx_rate == rate[r])
 			break;
 	}
 
@@ -110,7 +111,7 @@ int vnt_rx_data(struct vnt_private *priv, struct vnt_rcb *ptr_rcb,
 	}
 
 	if (ii == sband->n_bitrates) {
-		dev_dbg(&priv->usb->dev, "Wrong RxRate %x\n", *rx_rate);
+		dev_dbg(&priv->usb->dev, "Wrong RxRate %x\n", rx_rate);
 		return false;
 	}
 
-- 
2.8.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ