提交 72e0daad 编写于 作者: H Hillf Danton 提交者: James Bottomley

[SCSI] libfc: fix memory leakage in local port

There seems info should get freed when error encountered.
Signed-off-by: NHillf Danton <dhillf@gmail.com>
Signed-off-by: NRobert Love <robert.w.love@intel.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 2d6dfb00
......@@ -1703,8 +1703,10 @@ static int fc_lport_els_request(struct fc_bsg_job *job,
info->sg = job->reply_payload.sg_list;
if (!lport->tt.exch_seq_send(lport, fp, fc_lport_bsg_resp,
NULL, info, tov))
NULL, info, tov)) {
kfree(info);
return -ECOMM;
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册