WSL2-Linux-Kernel/fs/autofs4
Ian Kent bae8ec6655 autofs4: fix string validation check order
In function validate_dev_ioctl() we check that the string we've been sent
is a valid path.  The function that does this check assumes the string is
NULL terminated but our NULL termination check isn't done until after this
call.  This patch changes the order of the check.

Signed-off-by: Ian Kent <raven@themaw.net>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-06 15:59:23 -08:00
..
Makefile autofs4: add miscellaneous device for ioctls 2008-10-16 11:21:39 -07:00
autofs_i.h autofs4: make autofs type usage explicit 2009-01-06 15:59:23 -08:00
dev-ioctl.c autofs4: fix string validation check order 2009-01-06 15:59:23 -08:00
expire.c autofs4: make autofs type usage explicit 2009-01-06 15:59:23 -08:00
init.c autofs4: add miscellaneous device for ioctls 2008-10-16 11:21:39 -07:00
inode.c autofs4: make autofs type usage explicit 2009-01-06 15:59:23 -08:00
root.c [PATCH] fix ->llseek() for a bunch of directories 2008-08-25 01:18:09 -04:00
symlink.c [PATCH] mark struct inode_operations const 1 2007-02-12 09:48:46 -08:00
waitq.c autofs4: make autofs type usage explicit 2009-01-06 15:59:23 -08:00