ocfs2: punch hole should return EINVAL if the length argument in ioctl is negative
authorTariq Saeed <tariq.x.saeed@oracle.com>
Tue, 21 Jan 2014 23:48:38 +0000 (15:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jan 2014 00:19:42 +0000 (16:19 -0800)
commit6c10ea1c6eeeeb061a5d71d9c335d3eb4bbfdfed
tree95046c2f662bc40fe3237385dce585eca13e434e
parentd4797448dc41c5549ecc707a9a8c17544d5905eb
ocfs2: punch hole should return EINVAL if the length argument in ioctl is negative

An unreserve space ioctl OCFS2_IOC_UNRESVSP/64 should reject a negative
length.

Orabug:14789508

Signed-off-by: Tariq Saseed <tariq.x.saeed@oracle.com>
Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/file.c