From: Christof Schmitt Date: Tue, 4 Nov 2008 15:35:07 +0000 (+0100) Subject: [SCSI] zfcp: fix mempool usage for status_read requests X-Git-Tag: v2.6.28-rc5~9^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=88f2a977870af655296a682fe2a58c822cd25bb2;p=linux-2.6-omap-h63xx.git [SCSI] zfcp: fix mempool usage for status_read requests When allocating fsf requests without qtcb, store the pointer to the mempool in the fsf requests for later call to mempool_free. This codepath is only used by the status_read requests. Signed-off-by: Christof Schmitt Signed-off-by: Swen Schillig Signed-off-by: James Bottomley --- diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 694d9c9ea7c..5e8517fc8b6 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c @@ -683,6 +683,7 @@ static struct zfcp_fsf_req *zfcp_fsf_alloc_noqtcb(mempool_t *pool) if (!req) return NULL; memset(req, 0, sizeof(*req)); + req->pool = pool; return req; }