loop: fix NULL dereference if mount fails
[safe/jmp/linux-2.6] / fs / omfs / file.c
index b707fa5..399487c 100644 (file)
@@ -322,7 +322,7 @@ static sector_t omfs_bmap(struct address_space *mapping, sector_t block)
        return generic_block_bmap(mapping, block, omfs_get_block);
 }
 
-struct file_operations omfs_file_operations = {
+const struct file_operations omfs_file_operations = {
        .llseek = generic_file_llseek,
        .read = do_sync_read,
        .write = do_sync_write,
@@ -333,7 +333,7 @@ struct file_operations omfs_file_operations = {
        .splice_read = generic_file_splice_read,
 };
 
-struct inode_operations omfs_file_inops = {
+const struct inode_operations omfs_file_inops = {
        .truncate = omfs_truncate
 };