fuse: handle large user and group ID
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 7 Jul 2014 13:28:51 +0000 (15:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:00:02 +0000 (08:00 -0700)
commitd609df085cf9333cfda02a398d74694e7f2a644c
tree48744b60890d1254566dad999b07dfbb43f35461
parent18d8867933b9df6b51afa3b5694d82dd88bb46e2
fuse: handle large user and group ID

commit 233a01fa9c4c7c41238537e8db8434667ff28a2f upstream.

If the number in "user_id=N" or "group_id=N" mount options was larger than
INT_MAX then fuse returned EINVAL.

Fix this to handle all valid uid/gid values.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/inode.c