git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'driver-core-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git]
/
security
/
tomoyo
/
mount.c
diff --git
a/security/tomoyo/mount.c
b/security/tomoyo/mount.c
index
162a864
..
9fc2e15
100644
(file)
--- a/
security/tomoyo/mount.c
+++ b/
security/tomoyo/mount.c
@@
-138,7
+138,7
@@
static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,
}
if (need_dev) {
/* Get mount point or device file. */
- if (kern_path(dev_name, LOOKUP_FOLLOW, &path)) {
+ if (
!dev_name ||
kern_path(dev_name, LOOKUP_FOLLOW, &path)) {
error = -ENOENT;
goto out;
}