diff for duplicates of <20181130120445.GL3601@localhost.localdomain> diff --git a/a/1.txt b/N1/1.txt index 180f0fc..ece20c7 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,11 +35,11 @@ Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> > sctp_hash_params); > > - rhl_for_each_entry_rcu(t, tmp, list, node) -> - if (ep = t->asoc->ep) +> - if (ep == t->asoc->ep) > + rhl_for_each_entry_rcu(t, tmp, list, node) { > + if (!sctp_transport_hold(t)) > + continue; -> + if (ep = t->asoc->ep) { +> + if (ep == t->asoc->ep) { > + sctp_transport_put(t); > return t; > + } diff --git a/a/content_digest b/N1/content_digest index d7dbbe1..ab6a180 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\001212b7ece946393c21023a3bde5a4c712ae0293.1543473847.git.lucien.xin@gmail.com\0" "From\0Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>\0" "Subject\0Re: [PATCHv2 net] sctp: hold transport before accessing its asoc in sctp_epaddr_lookup_transport\0" - "Date\0Fri, 30 Nov 2018 12:04:45 +0000\0" + "Date\0Fri, 30 Nov 2018 10:04:45 -0200\0" "To\0Xin Long <lucien.xin@gmail.com>\0" "Cc\0network dev <netdev@vger.kernel.org>" linux-sctp@vger.kernel.org @@ -46,11 +46,11 @@ "> \t\t\t sctp_hash_params);\n" "> \n" "> -\trhl_for_each_entry_rcu(t, tmp, list, node)\n" - "> -\t\tif (ep = t->asoc->ep)\n" + "> -\t\tif (ep == t->asoc->ep)\n" "> +\trhl_for_each_entry_rcu(t, tmp, list, node) {\n" "> +\t\tif (!sctp_transport_hold(t))\n" "> +\t\t\tcontinue;\n" - "> +\t\tif (ep = t->asoc->ep) {\n" + "> +\t\tif (ep == t->asoc->ep) {\n" "> +\t\t\tsctp_transport_put(t);\n" "> \t\t\treturn t;\n" "> +\t\t}\n" @@ -63,4 +63,4 @@ "> 2.1.0\n" > -0b4f05cd1d29c35e8cf6c3fb73e2fc0aa6ed8b3c33010d5531e7d0674e3e66ba +aa730c4f02f6f8286baf484d1f8eb29c4bd8ab0d40c868241378f35dda7aad49
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.