]> git.baikalelectronics.ru Git - kernel.git/commit
target: Re-add explict zeroing of INQUIRY bounce buffer memory
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 1 Nov 2012 05:04:26 +0000 (22:04 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 1 Nov 2012 05:17:12 +0000 (22:17 -0700)
commit4dc0a9cf92ec3efeb1dddb67cb6f7431b87a335d
treeafa8927fa7a9e88f28f00630b40001e748dfa828
parent4ea74aba366a33eaa78f56ebe4fb52c900854bd2
target: Re-add explict zeroing of INQUIRY bounce buffer memory

This patch fixes a regression in spc_emulate_inquiry() code where the
local scope bounce buffer was no longer getting it's memory zeroed,
causing various problems with SCSI initiators that depend upon areas
of INQUIRY EVPD=0x83 payload having been zeroed.

This bug was introduced with the following v3.7-rc1 patch + CC'ed
stable commit:

commit b32f17e2dbab541c5de17a9a76bc49a8fb5b18a2
Author: Paolo Bonzini <pbonzini@redhat.com>
Date:   Fri Sep 7 17:30:38 2012 +0200

    target: support zero allocation length in INQUIRY

Go ahead and re-add the missing memset of bounce buffer memory to be
copied into the outgoing se_cmd descriptor kmapped SGL payload.

Reported-by: Kelsey Prantis <kelsey.prantis@intel.com>
Cc: Kelsey Prantis <kelsey.prantis@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Andy Grover <agrover@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_spc.c