ソースを参照

[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 <christof.schmitt@de.ibm.com>
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Christof Schmitt 16 年 前
コミット
88f2a97787
1 ファイル変更1 行追加0 行削除
  1. 1 0
      drivers/s390/scsi/zfcp_fsf.c

+ 1 - 0
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;
 }