]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: Fix race condition between ubi device creation and udev
authorIosif Harutyunov <iharutyunov@SonicWALL.com>
Fri, 22 Jul 2016 23:22:42 +0000 (23:22 +0000)
committerRichard Weinberger <richard@nod.at>
Fri, 29 Jul 2016 21:30:28 +0000 (23:30 +0200)
commitec74c1f4d5f0336e87ba8fa083f17a0c4a7bc4e3
treecca9b708d356e84bde4eef083f3b01ecd283cc5f
parent82fcb33790ca38b932d59d0a3fc384765bdeea71
ubi: Fix race condition between ubi device creation and udev

Install the UBI device object before we arm sysfs.
Otherwise udev tries to read sysfs attributes before UBI is ready and
udev rules will not match.

Cc: <stable@vger.kernel.org>
Signed-off-by: Iosif Harutyunov <iharutyunov@sonicwall.com>
[rw: massaged commit message]
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/build.c