From: Jan Kara Date: Tue, 2 Jun 2015 15:08:29 +0000 (+0200) Subject: audit: Fix check of return value of strnlen_user() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~80^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b08c5e59441d08ab4b5e72afefd5cd98a4d83df;p=pandora-kernel.git audit: Fix check of return value of strnlen_user() strnlen_user() returns 0 when it hits fault, not -1. Fix the test in audit_log_single_execve_arg(). Luckily this shouldn't ever happen unless there's a kernel bug so it's mostly a cosmetic fix. CC: Paul Moore Signed-off-by: Jan Kara Signed-off-by: Paul Moore --- Reading git-diff-tree failed