gpu/drm: Fix lock held when returning to user space.
[platform/kernel/linux-exynos.git] / kernel / module.c
index 2a44c51..94528b8 100644 (file)
@@ -1201,8 +1201,10 @@ static ssize_t store_uevent(struct module_attribute *mattr,
                            struct module_kobject *mk,
                            const char *buffer, size_t count)
 {
-       kobject_synth_uevent(&mk->kobj, buffer, count);
-       return count;
+       int rc;
+
+       rc = kobject_synth_uevent(&mk->kobj, buffer, count);
+       return rc ? rc : count;
 }
 
 struct module_attribute module_uevent =