Loading
wil6210: fix free'd memory access in wil_if_free()
In the wil_priv_deinit(), wdev->netdev is accessed, so free_netdev() should not be called before mentioned call. Set wdev->netdev to NULL Make sure no more attempts to use it. It is used for debug printk if not NULL. This fix kernel panic on module unload and in case error on probe; if memory allocation debugging enabled. Change-Id: I234993b93c50bb4df13f94f0a8ee1391daeca551 Signed-off-by:Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by:
John W. Linville <linville@tuxdriver.com> Git-commit: 8fcfdeac97ee3ee8dd8e0e44b6a3b9d49b951bbd Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git Signed-off-by:
Hamad Kadmany <hkadmany@codeaurora.org>