From: Swen Schillig Date: Wed, 26 Nov 2008 17:07:39 +0000 (+0100) Subject: [SCSI] zfcp: eliminate race between validation and locking X-Git-Tag: v2.6.28-rc8~76^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ac55aa90f2c3bd08e57e52a513b82b18ce0a5bc;p=pandora-kernel.git [SCSI] zfcp: eliminate race between validation and locking The check of having a valid pointer was performed before the processing was secured by the lock. Between those two steps the pointer can turn invalid. During further processing another value is used (referenced by the pointer described above) as a function pointer which is never verified to be valid either, resulting under some circumstances in an invalid function call. This patch is fixing both issues. Signed-off-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley --- Reading git-diff-tree failed