Skip to content

Commit

Permalink
isofs: Fix isofs_show_options()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
dhowells authored and Al Viro committed Jul 13, 2017
1 parent 1d278a8 commit fdb254d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/isofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fdb254d

Please sign in to comment.