kernel: audit: beautify code, for extern function, better to check its parameters...
authorChen Gang <gang.chen@asianux.com>
Sun, 7 Apr 2013 08:55:23 +0000 (16:55 +0800)
committerEric Paris <eparis@redhat.com>
Wed, 10 Apr 2013 17:31:12 +0000 (13:31 -0400)
  __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 <gang.chen@asianux.com>
[eparis: fix the return value when !CONFIG_AUDIT]
Signed-off-by: Eric Paris <eparis@redhat.com>

No differences found