• Hariprasad S's avatar
    RDMA/iw_cxgb4: handle return value of c4iw_l2t_send() and send_mpa_req() · caa6c9f2
    Hariprasad S authored
    ->In act_open_rpl(), CPL_ERR_TCAM_FULL error handling branch, there is
    no handling of the return value of send_fw_act_open_req().
    ->In send_fw_act_open_req(), there is no handling of return value of
    c4iw_l2t_send(), which may cause a ep leak and won't notify upper layers
    on connection establish failure.
    ->send_mpa_req() should act on the return from c4iw_l2t_send() and
    return the error to the caller.
    ->In case of c4iw_l2t_send() failure in send_mpa_req(), returns without
    starting the timer and not changing the ep state, which is further
    handled by act_establish()
    -> In act_establish()?if send_mpa_request's get_skb returns an error,
    may cause an ep leak. So handle return value of send_mpa_req()
    Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
    Signed-off-by: default avatarHariprasad Shenai <hariprasad@chelsio.com>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    caa6c9f2
cm.c 114 KB