All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath10k: fix kernel panic issue during pci probe
@ 2018-01-29  8:00 ` Yu Wang
  0 siblings, 0 replies; 6+ messages in thread
From: Yu Wang @ 2018-01-29  8:00 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless

If device gone during chip reset, ar->normal_mode_fw.board is not
initialized, but ath10k_debug_print_hwfw_info() will try to access its
member, which will cause 'kernel NULL pointer' issue. This was found
using a faulty device (pci link went down sometimes) in a random
insmod/rmmod/other-op test.
To fix it, check ar->normal_mode_fw.board before accessing the member.

Yu Wang (1):
  ath10k: fix kernel panic issue during pci probe

 drivers/net/wireless/ath/ath10k/debug.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

-- 
1.9.1


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-07 14:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-29  8:00 [PATCH] ath10k: fix kernel panic issue during pci probe Yu Wang
2018-01-29  8:00 ` Yu Wang
2018-01-29  8:00 ` Yu Wang
2018-01-29  8:00   ` Yu Wang
2018-02-07 14:16   ` Kalle Valo
2018-02-07 14:16   ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.