From: Nicholas Bellinger Date: Wed, 30 Nov 2011 08:41:20 +0000 (-0800) Subject: target: Fix possible NULL pointer with __transport_execute_tasks X-Git-Tag: v3.3-rc1~7^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40be67f4c588fe2f3e2dbd60ae1f470abc5b6ad8;p=pandora-kernel.git target: Fix possible NULL pointer with __transport_execute_tasks This patch makes __transport_execute_tasks() use a local *se_dev reference to prevent direct se_cmd->se_dev access after transport_cmd_check_stop() -> transport_add_tasks_from_cmd() has been called, as in the current implementation we can expect __transport_execute_tasks() may be called from another context that may have already completed the I/O. Cc: Christoph Hellwig Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed