Re: [PATCH][next] openvswitch: check for null pointer return from nla_nest_start_noflag

From: David Miller
Date: Sun May 05 2019 - 03:52:58 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Wed, 1 May 2019 14:41:58 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The call to nla_nest_start_noflag can return null in the unlikely
> event that nla_put returns -EMSGSIZE. Check for this condition to
> avoid a null pointer dereference on pointer nla_reply.
>
> Addresses-Coverity: ("Dereference null return value")
> Fixes: 11efd5cb04a1 ("openvswitch: Support conntrack zone limit")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied, thank you.