From: Bart Van Assche Date: Wed, 14 Aug 2013 15:35:29 +0000 (+0000) Subject: libfc: Fix a race in fc_exch_timer_set_locked() X-Git-Tag: v3.13-rc1~99^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b86788658be425a5454246a954721d9122d2b3d6;p=pandora-kernel.git libfc: Fix a race in fc_exch_timer_set_locked() It is allowed to pass a zero timeout value to fc_seq_exch_abort(). Avoid that this can cause the timeout function to drop the exchange reference before it has been increased by fc_exch_timer_set_locked(). This patch fixes a crash when running FCoE target code with poisoning enabled in the memory allocator. Signed-off-by: Bart Van Assche Cc: Neil Horman Signed-off-by: Robert Love --- Reading git-diff-tree failed