Skip to contentSkip to conversation

Patch "rtlwifi: rtl_usb: Fix missing entry in USB driver's private data" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Feb 23, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

rtlwifi: rtl_usb: Fix missing entry in USB driver's private data

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
rtlwifi-rtl_usb-fix-missing-entry-in-usb-driver-s-private-data.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 60f59ce0278557f7896d5158ae6d12a4855a72cc Mon Sep 17 00:00:00 2001

From: Larry Finger <[email protected]>
Date: Wed, 21 Dec 2016 11:18:55 -0600
Subject: rtlwifi: rtl_usb: Fix missing entry in USB driver's private data

From: Larry Finger <[email protected]>

commit 60f59ce0278557f7896d5158ae6d12a4855a72cc upstream.

These drivers need to be able to reference "struct ieee80211_hw" from the driver's private data, and vice versa. The USB driver failed to store the address of ieee80211_hw in the private data. Although this bug has been present for a long time, it was not exposed until commit ba9f93f82aba ("rtlwifi: Fix enter/exit power_save").

Fixes ba9f93f82aba ("rtlwifi: Fix enter/exit power_save")
Cc Takashi Iwai <[email protected]>
---
 drivers/net/wireless/realtek/rtlwifi/usb.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/realtek/rtlwifi/usb.c +1 -0
@@ -1073,6 +1073,7 @@ int rtl_usb_probe(struct usb_interface *
 		return -ENOMEM;
 	}
 	rtlpriv = hw->priv;
+	rtlpriv->hw = hw;
 	rtlpriv->usb_data = kzalloc(RTL_USB_MAX_RX_COUNT * sizeof(u32),
 				    GFP_KERNEL);
 	if (!rtlpriv->usb_data)

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/rtlwifi-rtl_usb-fix-missing-entry-in-usb-driver-s-private-data.patch