On 1/17/18 10:48 PM, Xin Long wrote:
> Move up the extack reset/initialization in netlink_rcv_skb, so that
> those 'goto ack' will not skip it. Otherwise, later on netlink_ack
> may use the uninitialized extack and cause kernel crash.
>
> Fixes: cbbdf8433a5f ("netlink: extack needs to be reset each time through
> loop")
> Reported-by: [email protected]
> Signed-off-by: Xin Long <[email protected]>
> ---
> net/netlink/af_netlink.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Acked-by: David Ahern <[email protected]>