]> err.no Git - linux-2.6/commit
[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)
commit9dfe1cc36be27040144238d30da05053db71beb1
tree2e9c8a0d3f477fc13f9db1682dc74aa848315845
parentd26ab06ede83287f99067fee3034c5455a75faf9
[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