diff options
author | David Howells <dhowells@redhat.com> | 2017-07-11 16:22:59 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-13 12:30:43 -0400 |
commit | fdb254db21bb4aed44a0bc7fe993e58d3848c926 (patch) | |
tree | ee0c87b139db307eb971390fd3e8f4c97210b7f0 /fs/isofs | |
parent | 1d278a879081ddc40286500e58868aaee47de257 (diff) | |
download | linux-fdb254db21bb4aed44a0bc7fe993e58d3848c926.tar.gz linux-fdb254db21bb4aed44a0bc7fe993e58d3848c926.tar.bz2 linux-fdb254db21bb4aed44a0bc7fe993e58d3848c926.zip |
isofs: Fix isofs_show_options()
The isofs patch needs a small fix to handle a signed/unsigned comparison that
the compiler didn't flag - thanks to Dan for catching it.
It should be noted, however, the session number handing appears to be incorrect
between where it is parsed and where it is used.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/isofs')
-rw-r--r-- | fs/isofs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index f80ee600d1bc..8cf898a59730 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c @@ -492,7 +492,7 @@ static int isofs_show_options(struct seq_file *m, struct dentry *root) if (sbi->s_check) seq_printf(m, ",check=%c", sbi->s_check); if (sbi->s_mapping) seq_printf(m, ",map=%c", sbi->s_mapping); - if (sbi->s_session != -1) seq_printf(m, ",session=%u", sbi->s_session); + if (sbi->s_session != 255) seq_printf(m, ",session=%u", sbi->s_session - 1); if (sbi->s_sbsector != -1) seq_printf(m, ",sbsector=%u", sbi->s_sbsector); if (root->d_sb->s_blocksize != 1024) |