On Wed, Sep 7, 2016 at 4:45 PM, Daniel Wagner <wagi@xxxxxxxxx> wrote:
From: Daniel Wagner <daniel.wagner@xxxxxxxxxxxx>
+static int fw_status_wait_timeout(struct fw_status *fw_st, long timeout)
+{
+ int ret;
+
+ ret = wait_for_completion_interruptible_timeout(&fw_st->completion,
+ timeout);
+ if (ret == 0 && test_bit(FW_STATUS_ABORTED, &fw_st->status))
+ return -ENOENT;
I guess the check should have been OR instead of AND, right?