quota: do not allow setting of quota limits to too high values
commit338bf9afda91ec005a1e9a0de4af0271cc167d56
authorAndrew Perepechko <andrew.perepechko@sun.com>
Mon, 28 Apr 2008 09:14:31 +0000 (28 02:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:32 +0000 (28 08:58 -0700)
treee60edf0441efbe8215cdeb08bf05c1b6afff58a1
parent3b0cb4caefeca6fe6b05c6c5a76e9c633b44c58f
quota: do not allow setting of quota limits to too high values

We should check whether quota limits set via Q_SETQUOTA are not exceeding
limits which quota format is able to handle.

Signed-off-by: Andrew Perepechko <andrew.perepechko@sun.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dquot.c
fs/quota_v1.c
fs/quota_v2.c
include/linux/quota.h