ubi: Fix race condition between ubi volume creation and udev
commit85f7a399a3721701574f5923d16f0492236cb53b
authorClay McClure <clay@daemons.net>
Fri, 22 Sep 2017 02:01:34 +0000 (21 19:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:06:45 +0000 (16 20:06 +0100)
tree29ed1c7d426c1c6d5f4fa0ab6928bd5c85292a4f
parentedb72dea6d46baeeb78d0359d2e6da0fe8c51d4d
ubi: Fix race condition between ubi volume creation and udev

commit a51a0c8d213594bc094cb8e54aad0cb6d7f7b9a6 upstream.

Similar to commit 714fb87e8bc0 ("ubi: Fix race condition between ubi
device creation and udev"), we should make the volume active before
registering it.

Signed-off-by: Clay McClure <clay@daemons.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/vmt.c