]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ubi: Fix race condition between ubi volume creation and udev
authorClay McClure <clay@daemons.net>
Fri, 22 Sep 2017 02:01:34 +0000 (19:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Mar 2018 10:17:52 +0000 (11:17 +0100)
commit35482f62d471767d40611bc6bb0e570ee1a8e218
treef22dc7b2fec2776dc209203d1454009fb0ee2433
parent0683564edc4e61f95663b9183ae86d6d49659ff4
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/vmt.c