Commit 12f567db authored by Iosif Harutyunov's avatar Iosif Harutyunov Committed by Willy Tarreau
Browse files

ubi: Fix race condition between ubi device creation and udev



commit 714fb87e upstream.

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: default avatarIosif Harutyunov <iharutyunov@sonicwall.com>
[rw: massaged commit message]
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 265a87bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment