diff options
Diffstat (limited to 'drivers/base/core.c')
| -rw-r--r-- | drivers/base/core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index e2285059161d..a4ced331bc50 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
| @@ -1073,8 +1073,14 @@ out: | |||
| 1073 | static ssize_t uevent_store(struct device *dev, struct device_attribute *attr, | 1073 | static ssize_t uevent_store(struct device *dev, struct device_attribute *attr, |
| 1074 | const char *buf, size_t count) | 1074 | const char *buf, size_t count) |
| 1075 | { | 1075 | { |
| 1076 | if (kobject_synth_uevent(&dev->kobj, buf, count)) | 1076 | int rc; |
| 1077 | |||
| 1078 | rc = kobject_synth_uevent(&dev->kobj, buf, count); | ||
| 1079 | |||
| 1080 | if (rc) { | ||
| 1077 | dev_err(dev, "uevent: failed to send synthetic uevent\n"); | 1081 | dev_err(dev, "uevent: failed to send synthetic uevent\n"); |
| 1082 | return rc; | ||
| 1083 | } | ||
| 1078 | 1084 | ||
| 1079 | return count; | 1085 | return count; |
| 1080 | } | 1086 | } |
