diff for duplicates of <20170522195144.GC4642@localhost.localdomain> diff --git a/a/1.txt b/N1/1.txt index 1c33fbb..fedb799 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -28,7 +28,8 @@ Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> > > /* Allocate and initialize the endpoint hash table. */ > sctp_ep_hashsize = 64; -> - sctp_ep_hashtable > - kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL); +> - sctp_ep_hashtable = +> - kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL); > + sctp_ep_hashtable = kmalloc_array(64, sizeof(*sctp_ep_hashtable), > + GFP_KERNEL); > if (!sctp_ep_hashtable) { diff --git a/a/content_digest b/N1/content_digest index 2a68366..1b25b1d 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\024442429-99f7-7d83-5f56-f84776a81880@users.sourceforge.net\0" "From\0Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>\0" "Subject\0Re: [PATCH 1/5] sctp: Use kmalloc_array() in sctp_init()\0" - "Date\0Mon, 22 May 2017 19:51:44 +0000\0" + "Date\0Mon, 22 May 2017 16:51:44 -0300\0" "To\0SF Markus Elfring <elfring@users.sourceforge.net>\0" "Cc\0linux-sctp@vger.kernel.org" netdev@vger.kernel.org @@ -43,7 +43,8 @@ "> \n" "> \t/* Allocate and initialize the endpoint hash table. */\n" "> \tsctp_ep_hashsize = 64;\n" - "> -\tsctp_ep_hashtable > -\t\tkmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL);\n" + "> -\tsctp_ep_hashtable =\n" + "> -\t\tkmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL);\n" "> +\tsctp_ep_hashtable = kmalloc_array(64, sizeof(*sctp_ep_hashtable),\n" "> +\t\t\t\t\t GFP_KERNEL);\n" "> \tif (!sctp_ep_hashtable) {\n" @@ -56,4 +57,4 @@ "> More majordomo info at http://vger.kernel.org/majordomo-info.html\n" > -01e791aa33a768da84d2be93578c271d75bc40006338c5cb4bb04c7f3c50298b +637ca656814bd63be463f0d43e16dfffd873445104fd5a6cae019dc61cf6e699
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.