]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add missing error code to BTRFS_IOC_INO_LOOKUP handler
authorFilipe David Borba Manana <fdmanana@gmail.com>
Wed, 14 Aug 2013 02:00:20 +0000 (03:00 +0100)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:15:48 +0000 (08:15 -0400)
commitbfde73239636fd6538ff35c8b857f76fa5736c8b
tree8412607e4a543b58728ffd621af9a4a200f7918d
parent2fda4998d9f4692973fd5fbbfe2508e00fd0e714
Btrfs: add missing error code to BTRFS_IOC_INO_LOOKUP handler

If the path doesn't fit in the input buffer, return ENAMETOOLONG
instead of returning with a success code (0) and a partially
filled and right justified buffer.

Also removed useless buffer pointer check outside the while loop.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ioctl.c