]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/core.c
Driver core: warn when userspace writes to the uevent file in a non-supported way
[linux-2.6-omap-h63xx.git] / drivers / base / core.c
index 72c6ee57471b7f5ee344eb3c5d2132576ca6e676..f69305c7269d1cf7fb294c2576a67c66118f7d64 100644 (file)
@@ -296,6 +296,9 @@ out:
 static ssize_t store_uevent(struct device *dev, struct device_attribute *attr,
                            const char *buf, size_t count)
 {
+       if (memcmp(buf, "add", 3) != 0)
+               dev_err(dev, "uevent: unsupported action-string; this will "
+                       "be ignored in a future kernel version");
        kobject_uevent(&dev->kobj, KOBJ_ADD);
        return count;
 }