All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Krystad <peter.krystad at linux.intel.com>
To: mptcp at lists.01.org
Subject: [MPTCP] [PATCH] mptcp: Add sock_put() call on error path
Date: Mon, 12 Aug 2019 16:57:58 -0700	[thread overview]
Message-ID: <20190812235758.8530-1-peter.krystad@linux.intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

Per final review comment

squashto: Add handling of outgoing MP_JOIN requests

Signed-off-by: Peter Krystad <peter.krystad(a)linux.intel.com>
---
 net/mptcp/subflow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index 448c9e7f567a..27afc64d377f 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -257,6 +257,7 @@ int subflow_connect(struct sock *sk, struct sockaddr_in *local,
 	return err;
 
 failed:
+	sock_put(sf->sk);
 	sock_release(sf);
 	return err;
 }
-- 
2.17.2


             reply	other threads:[~2019-08-12 23:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-12 23:57 Peter Krystad [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-08-13 15:16 [MPTCP] [PATCH] mptcp: Add sock_put() call on error path Matthieu Baerts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190812235758.8530-1-peter.krystad@linux.intel.com \
    --to=unknown@example.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.