Re: [PATCH net-next] tipc: add missing dev_put() on error in tipc_enable_l2_media

From: David Miller
Date: Thu Jul 26 2018 - 17:05:53 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Wed, 25 Jul 2018 18:00:49 +0800

> when tipc_own_id failed to obtain node identity,dev_put should
> be call before return -EINVAL.
>
> Fixes: 682cd3cf946b ("tipc: confgiure and apply UDP bearer MTU on running links")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied to net-next, thank you.