]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/device_cgroup.c
devcgroup: fix odd behaviour when writing 'a' to devices.allow
[linux-2.6-omap-h63xx.git] / security / device_cgroup.c
index baf348834b66c003758246427a98907d38f78c14..fd764a0858d0d5f1f60f1b671cbcc41c04be77dd 100644 (file)
@@ -382,6 +382,8 @@ static ssize_t devcgroup_access_write(struct cgroup *cgroup, struct cftype *cft,
        case 'a':
                wh.type = DEV_ALL;
                wh.access = ACC_MASK;
+               wh.major = ~0;
+               wh.minor = ~0;
                goto handle;
        case 'b':
                wh.type = DEV_BLOCK;