From: Matthew Wilcox Date: Wed, 3 Oct 2007 01:55:25 +0000 (-0400) Subject: [SCSI] advansys: Fix simultaneous calls to ->queuecommand X-Git-Tag: v2.6.24-rc1~1290^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05848b6e66ee237c4496c2b49821d2622b0f677e;p=pandora-kernel.git [SCSI] advansys: Fix simultaneous calls to ->queuecommand The narrow board used two global structures to set up a command; unfortunately they weren't locked, so with two boards in the machine, one call to queuecommand could corrupt the data being used by the other call to queuecommand. Fix this by allocating asc_scsi_q on the stack (64 bytes) and using kmalloc for the asc_sg_head (2k) Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley --- Reading git-diff-tree failed