projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7441be7
)
wil6210: check rx_buff_mgmt before accessing it
author
Dedy Lansky
<dlansky@codeaurora.org>
Fri, 26 Apr 2019 15:43:36 +0000
(18:43 +0300)
committer
Kalle Valo
<kvalo@codeaurora.org>
Fri, 3 May 2019 05:04:47 +0000
(08:04 +0300)
Make sure rx_buff_mgmt is initialized before accessing it.
Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/txrx_edma.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/wil6210/txrx_edma.c
b/drivers/net/wireless/ath/wil6210/txrx_edma.c
index
f37a205
..
6140db5
100644
(file)
--- a/
drivers/net/wireless/ath/wil6210/txrx_edma.c
+++ b/
drivers/net/wireless/ath/wil6210/txrx_edma.c
@@
-269,6
+269,9
@@
static void wil_move_all_rx_buff_to_free_list(struct wil6210_priv *wil,
struct list_head *active = &wil->rx_buff_mgmt.active;
dma_addr_t pa;
+ if (!wil->rx_buff_mgmt.buff_arr)
+ return;
+
while (!list_empty(active)) {
struct wil_rx_buff *rx_buff =
list_first_entry(active, struct wil_rx_buff, list);