From: David Herrmann Date: Sat, 17 Nov 2012 11:45:48 +0000 (+0100) Subject: cuse: do not register multiple devices with identical names X-Git-Tag: v3.8-rc5~22^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30783587b0f318b9e2e165f34cf5dfd9425a4904;p=pandora-kernel.git cuse: do not register multiple devices with identical names Sysfs doesn't allow two devices with the same name, but we register a sysfs entry for each cuse device without checking for name collisions. This extends the registration to first check whether the name was already registered. To avoid race-conditions between the name-check and linking the device, we need to protect the whole registration with a mutex. Signed-off-by: David Herrmann Acked-by: Tejun Heo Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed