From: Nicholas Bellinger Date: Tue, 6 Nov 2012 23:43:53 +0000 (-0800) Subject: target: Fix possible TFO->write_pending() sense_reason_t silent WRITE corruption X-Git-Tag: v3.8-rc1~94^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b69c1fcf0a7cb2b7dff12ce4e8506b395431a52c;p=pandora-kernel.git target: Fix possible TFO->write_pending() sense_reason_t silent WRITE corruption This patch fixes a possible case in transport_generic_new_cmd() where a failure from TFO->write_pending() from a fabric module return something other than -EAGAIN or -ENOMEM would cause a failed WRITE to silently succeed. Go ahead and return TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE for this special case instead of only just making noise with WARN_ON(). (v2: Fix incorrect exception return for all cases) Cc: Christoph Hellwig Cc: Roland Dreier Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed