git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regmap-irq: Remove unused mask_invert flag
[sfrench/cifs-2.6.git]
/
include
/
linux
/
device_cgroup.h
diff --git
a/include/linux/device_cgroup.h
b/include/linux/device_cgroup.h
index 9a72214496e58931d8632f98d6e11b28a5e4939e..d02f32b7514e647c7a16efa3cbf01e35b9e8066e 100644
(file)
--- a/
include/linux/device_cgroup.h
+++ b/
include/linux/device_cgroup.h
@@
-44,6
+44,9
@@
static inline int devcgroup_inode_mknod(int mode, dev_t dev)
if (!S_ISBLK(mode) && !S_ISCHR(mode))
return 0;
+ if (S_ISCHR(mode) && dev == WHITEOUT_DEV)
+ return 0;
+
if (S_ISBLK(mode))
type = DEVCG_DEV_BLOCK;
else