Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f716eac authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wil6210: check rx_buff_mgmt before accessing it"

parents 8c0dd34c 3939fc6f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -259,6 +259,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);