Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376026
b: refs/heads/master
c: 9752197
h: refs/heads/master
v: v3
  • Loading branch information
dyoung@redhat.com authored and Greg Kroah-Hartman committed May 21, 2013
1 parent d9d997e commit 4d143b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c04fc3536b9e6d143991a8c5c16b04866baeed6
refs/heads/master: 97521978c5ea80857d4f4f74d4e1fc93721482cf
6 changes: 4 additions & 2 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,11 @@ int device_create_file(struct device *dev,

if (dev) {
WARN(((attr->attr.mode & S_IWUGO) && !attr->store),
"Write permission without 'store'\n");
"Attribute %s: write permission without 'store'\n",
attr->attr.name);
WARN(((attr->attr.mode & S_IRUGO) && !attr->show),
"Read permission without 'show'\n");
"Attribute %s: read permission without 'show'\n",
attr->attr.name);
error = sysfs_create_file(&dev->kobj, &attr->attr);
}

Expand Down

0 comments on commit 4d143b9

Please sign in to comment.