From: Alexander Usyskin Date: Tue, 1 Apr 2014 20:50:41 +0000 (+0300) Subject: mei: ignore client writing state during cb completion X-Git-Tag: omap-for-v3.16/pm-signed~78^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ec43661fe8f1977dd0f05353302ae2ed10aabb;p=pandora-kernel.git mei: ignore client writing state during cb completion Ignore client writing state during cb completion to fix a memory leak. When moving cbs to the completion list we should not look at writing_state as this state can be already overwritten by next write, the fact that a cb is on the write waiting list means that it was already written to the HW and we can safely complete it. Same pays for wait in poll handler, we do not have to check the state wake is done after completion list processing. Cc: stable@vger.kernel.org Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed