From: Ian Kent Date: Tue, 6 Jan 2009 22:42:09 +0000 (-0800) Subject: autofs4: fix string validation check order X-Git-Tag: v2.6.29-rc1~293 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bae8ec66554b27967f057a4b7888b09481ff1b8b;p=pandora-kernel.git 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 Acked-by: Jeff Moyer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed