From: Somnath Kotur Date: Thu, 5 Dec 2013 06:38:16 +0000 (+0530) Subject: be2net: Free/delete pmacs (in be_clear()) only if they exist X-Git-Tag: v3.13-rc4~3^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b05004adf9d34e7fb8e96fe6a7cdeb0843f5ab35;p=pandora-kernel.git be2net: Free/delete pmacs (in be_clear()) only if they exist During suspend-resume and lancer error recovery we will cleanup and re-initialize the resources through be_clear() and be_setup() respectively. During re-initialisation in be_setup(), if be_get_config() fails, we'll again call be_clear() which will cause a NULL pointer dereference as adapter->pmac_id is already freed. Signed-off-by: Kalesh AP Signed-off-by: Somnath Kotur Signed-off-by: David S. Miller --- Reading git-diff-tree failed