Skip to content

Commit

Permalink
[SCSI] libfc: fix memory leakage in local port
Browse files Browse the repository at this point in the history
There seems info should get freed when error encountered.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Hillf Danton authored and James Bottomley committed Dec 21, 2010
1 parent 2d6dfb0 commit 72e0daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/scsi/libfc/fc_lport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 72e0daa

Please sign in to comment.