file->f_op is never NULL...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+1
-1
@@ -937,7 +937,7 @@ static int validate_mmap_request(struct file *file,
|
||||
struct address_space *mapping;
|
||||
|
||||
/* files must support mmap */
|
||||
if (!file->f_op || !file->f_op->mmap)
|
||||
if (!file->f_op->mmap)
|
||||
return -ENODEV;
|
||||
|
||||
/* work out if what we've got could possibly be shared
|
||||
|
||||
Reference in New Issue
Block a user