mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
The function srpt_cm_req_recv() now returns an error code instead of 0
when an SRP login request is rejected. This fixes a memory leak: the InfiniBand core (drivers/infiniband/core/cm.c) only calls cm_free_work() when the registered cm_handler function, i.e. srpt_cm_req_recv() returns an error code. This patch has been submitted by by Frank Zago. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@800 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1368,7 +1368,7 @@ reject:
|
||||
rej->buf_fmt =
|
||||
cpu_to_be16(SRP_BUF_FORMAT_DIRECT | SRP_BUF_FORMAT_INDIRECT);
|
||||
|
||||
ret = ib_send_cm_rej(cm_id, IB_CM_REJ_CONSUMER_DEFINED, NULL, 0,
|
||||
ib_send_cm_rej(cm_id, IB_CM_REJ_CONSUMER_DEFINED, NULL, 0,
|
||||
(void *)rej, sizeof *rej);
|
||||
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user