diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/namei.c b/fs/namei.c index 99a34717b2b0..73ec863a9896 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -161,7 +161,7 @@ static char *getname_flags(const char __user *filename, int flags, int *empty) | |||
161 | 161 | ||
162 | char *getname(const char __user * filename) | 162 | char *getname(const char __user * filename) |
163 | { | 163 | { |
164 | return getname_flags(filename, 0, 0); | 164 | return getname_flags(filename, 0, NULL); |
165 | } | 165 | } |
166 | 166 | ||
167 | #ifdef CONFIG_AUDITSYSCALL | 167 | #ifdef CONFIG_AUDITSYSCALL |
@@ -1408,7 +1408,7 @@ static inline int can_lookup(struct inode *inode) | |||
1408 | */ | 1408 | */ |
1409 | static inline long count_masked_bytes(unsigned long mask) | 1409 | static inline long count_masked_bytes(unsigned long mask) |
1410 | { | 1410 | { |
1411 | return mask*0x0001020304050608 >> 56; | 1411 | return mask*0x0001020304050608ul >> 56; |
1412 | } | 1412 | } |
1413 | 1413 | ||
1414 | static inline unsigned int fold_hash(unsigned long hash) | 1414 | static inline unsigned int fold_hash(unsigned long hash) |
@@ -1972,7 +1972,7 @@ int user_path_at_empty(int dfd, const char __user *name, unsigned flags, | |||
1972 | int user_path_at(int dfd, const char __user *name, unsigned flags, | 1972 | int user_path_at(int dfd, const char __user *name, unsigned flags, |
1973 | struct path *path) | 1973 | struct path *path) |
1974 | { | 1974 | { |
1975 | return user_path_at_empty(dfd, name, flags, path, 0); | 1975 | return user_path_at_empty(dfd, name, flags, path, NULL); |
1976 | } | 1976 | } |
1977 | 1977 | ||
1978 | static int user_path_parent(int dfd, const char __user *path, | 1978 | static int user_path_parent(int dfd, const char __user *path, |