From: Kalesh AP Date: Wed, 5 Aug 2015 07:27:50 +0000 (-0400) Subject: be2net: protect eqo->affinity_mask from getting freed twice X-Git-Tag: omap-for-v4.3/fixes-merge-window~107^2~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=649886a36b5f023811321819eceaa8ba66444e3b;p=pandora-kernel.git be2net: protect eqo->affinity_mask from getting freed twice There are paths in the driver such as an unrecoverable error (UE) detection followed by a driver unload wherein be_clear() is invoked twice. Individual data structures are reset so that they are not cleaned/freed twice. This patch does the same for eqo->affinity_mask. It is freed only if EQs haven't yet been destroyed. This fixes a possible crash when affinity_mask is freed twice. Signed-off-by: Kalesh AP Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed