]> git.karo-electronics.de Git - karo-tx-linux.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)
commit714fb87e8bc05ff78255afc0dca981e8c5242785
treecca9b708d356e84bde4eef083f3b01ecd283cc5f
parent380bc8b71081a258a4cda0060803bfde47dd8c60
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