ocfs2: punch hole should return EINVAL if the length argument in ioctl is negative
authorTariq Saeed <[email protected]>
Tue, 21 Jan 2014 23:48:38 +0000 (15:48 -0800)
committerLinus Torvalds <[email protected]>
Wed, 22 Jan 2014 00:19:42 +0000 (16:19 -0800)
commita2a3b39824e152ecf0e7357ccc7b9d6fd4b9fe7e
tree95046c2f662bc40fe3237385dce585eca13e434e
parent16eac4be46fdd19e4e0bcd06e77e947266d2cf35
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 <[email protected]>
Signed-off-by: Srinivas Eeda <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Mark Fasheh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/file.c