[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140625.164018.1869634626144024561.davem@davemloft.net>
Date: Wed, 25 Jun 2014 16:40:18 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: tklauser@...tanz.ch
Cc: dborkman@...hat.com, ast@...mgrid.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: filter: Use kcalloc/kmalloc_array to allocate
arrays
From: Tobias Klauser <tklauser@...tanz.ch>
Date: Tue, 24 Jun 2014 15:33:22 +0200
> Use kcalloc/kmalloc_array to make it clear we're allocating arrays. No
> integer overflow can actually happen here, since len/flen is guaranteed
> to be less than BPF_MAXINSNS (4096). However, this changed makes sure
> we're not going to get one if BPF_MAXINSNS were ever increased.
>
> Signed-off-by: Tobias Klauser <tklauser@...tanz.ch>
Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists