From: Arvind Kumar Date: Sat, 8 Mar 2014 20:51:12 +0000 (-0800) Subject: [SCSI] vmw_pvscsi: Fix pvscsi_abort() function. X-Git-Tag: v3.15-rc1~136^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2713cceb3a8efef8b86bec06f10689c95ddbc8c;p=pandora-kernel.git [SCSI] vmw_pvscsi: Fix pvscsi_abort() function. This change ensures that pvscsi_abort() function returns SUCCESS only when the command in question was actually completed, otherwise returns FAILURE. The code before change, was causing a bug where driver tries to complete a command to the mid-layer while the mid-layer has already requested the driver to abort that command, in response to which the driver has responded with SUCCESS causing mid-layer to free the command struct. Signed-off-by: Arvind Kumar Tested-by: Ewan Milne Signed-off-by: James Bottomley --- Reading git-diff-tree failed