From: Vladimir Kondratiev Date: Wed, 6 Aug 2014 07:31:59 +0000 (+0300) Subject: wil6210: fix free'd memory access in wil_if_free() X-Git-Tag: fixes-against-v3.18-rc2~81^2~133^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fcfdeac97ee3ee8dd8e0e44b6a3b9d49b951bbd;p=pandora-kernel.git 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. Signed-off-by: Vladimir Kondratiev Signed-off-by: John W. Linville --- Reading git-diff-tree failed