Thread (1 message) 1 message, 1 author, 2016-07-11

Re: [oss-drivers] [PATCH][V2] nfp: check idx is -ENOSPC before using it is an index

From: Jakub Kicinski <hidden>
Date: 2016-07-11 15:59:43
Also in: netdev

On Mon, 11 Jul 2016 16:54:20 +0100, Colin King wrote:
From: Colin Ian King <redacted>

idx can be returned as -ENOSPC, so we should check for this first
before using it as an index into nn->vxlan_usecnt[] to avoid an
out of bounds array offset read.

Signed-off-by: Colin Ian King <redacted>
Acked-by: Jakub Kicinski <redacted>

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help