diff options
author | Jan Kara <jack@suse.cz> | 2017-07-18 12:27:56 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-07-18 12:33:16 +0200 |
commit | 34363c057b368114d8b93376ec6b65ef5f36a55b (patch) | |
tree | 7108d5e9650581495e1733188f453cec9711aa71 /fs/select.c | |
parent | fcea8aed91f53b51f9b943dc01f12d8aa666c720 (diff) | |
download | linux-next-34363c057b368114d8b93376ec6b65ef5f36a55b.tar.gz |
isofs: Fix off-by-one in 'session' mount option parsing
According to ECMA-130 standard maximum valid track number is 99. Since
'session' mount option starts indexing at 0 (and we add 1 to the passed
number), we should refuse value 99. Also the condition in
isofs_get_last_session() unnecessarily repeats the check - remove it.
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions