]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
fat: allow time_offset to be up to 24 hours
authorJan Kara <jack@suse.cz>
Wed, 20 Jan 2016 22:59:35 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commita513d86983164a1f74a226ab7006deffbf63907e
tree8ed68ccde150d013ea7e0293af30b896b1c1b805
parent2c35dea279351f2ad74a99126b29f9f5394ccc04
fat: allow time_offset to be up to 24 hours

Currently we limit values of time_offset mount option to be between -12
and 12 hours.  However e.g.  zone GMT+12 can have a DST correction on top
which makes the total time difference 13 hours.  Update the checks in
mount option parsing to allow offset of upto 24 hours to allow for unusual
cases.

Signed-off-by: Jan Kara <jack@suse.cz>
Reported-by: Volker Kuhlmann <list0570@paradise.net.nz>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c