[SCSI] zfcp: Fix mempool pointer for GID_PN request allocation
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Mon, 19 May 2008 10:17:38 +0000 (12:17 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 5 Jun 2008 14:27:13 +0000 (09:27 -0500)
commit215b20b8296ca6decf43aedd90fad8f36efc680a
tree2e9c8a0d3f477fc13f9db1682dc74aa848315845
parent13d950c72fa190f205ef952a0188d49cfc870790
[SCSI] zfcp: Fix mempool pointer for GID_PN request allocation

When allocating memory for GID_PN nameserver requests, the allocation
function stores the pointer to the mempool, but then overwrites the
pointer via memset. Later, the wrong function to free the memory will
be called, since this is based on the stored pointer.

Fix this by first initializing the struct and then storing the pointer.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/s390/scsi/zfcp_aux.c