mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
rtlwifi: rtl_usb: Fix missing entry in USB driver's private data
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 commitba9f93f82a
("rtlwifi: Fix enter/exit power_save"). Fixes:ba9f93f82a
("rtlwifi: Fix enter/exit power_save") Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
570b90fa23
commit
60f59ce027
@ -1063,6 +1063,7 @@ int rtl_usb_probe(struct usb_interface *intf,
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user