From: Chen Gang Date: Sun, 7 Apr 2013 08:55:23 +0000 (+0800) Subject: kernel: audit: beautify code, for extern function, better to check its parameters... X-Git-Tag: v3.10-rc1~5^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2950fa9d3291b90e9b7663b6a409ea37a97a5e35;p=pandora-kernel.git kernel: audit: beautify code, for extern function, better to check its parameters by itself __audit_socketcall is an extern function. better to check its parameters by itself. also can return error code, when fail (find invalid parameters). also use macro instead of real hard code number also give related comments for it. Signed-off-by: Chen Gang [eparis: fix the return value when !CONFIG_AUDIT] Signed-off-by: Eric Paris --- Reading git-diff-tree failed