[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200721.160956.1015616148171478130.davem@davemloft.net>
Date: Tue, 21 Jul 2020 16:09:56 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ap420073@...il.com
Cc: kuba@...nel.org, netdev@...r.kernel.org, jiri@...lanox.com
Subject: Re: [PATCH net v2] netdevsim: fix unbalaced locking in
nsim_create()
From: Taehee Yoo <ap420073@...il.com>
Date: Tue, 21 Jul 2020 14:51:50 +0000
> In the nsim_create(), rtnl_lock() is called before nsim_bpf_init().
> If nsim_bpf_init() is failed, rtnl_unlock() should be called,
> but it isn't called.
> So, unbalanced locking would occur.
>
> Fixes: e05b2d141fef ("netdevsim: move netdev creation/destruction to dev probe")
> Signed-off-by: Taehee Yoo <ap420073@...il.com>
Applied and queued up for -stable, thank you.
Powered by blists - more mailing lists