From: Ian Munsie Date: Thu, 9 Oct 2014 00:17:46 +0000 (+1100) Subject: cxl: Fix afu_read() not doing finish_wait() on signal or non-blocking X-Git-Tag: fixes-against-v3.18-rc2~117^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d53ba6b3bba33432cc37b7101a86f8f3392c46e7;p=pandora-kernel.git cxl: Fix afu_read() not doing finish_wait() on signal or non-blocking If afu_read() returned due to a signal or the AFU file descriptor being opened non-blocking it would not call finish_wait() before returning, which could lead to a crash later when something else wakes up the wait queue. This patch restructures the wait logic to ensure that the cleanup is done correctly. Signed-off-by: Ian Munsie Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed