From: Jan Engelhardt Date: Fri, 19 Mar 2010 16:16:42 +0000 (+0100) Subject: netfilter: xtables: change xt_match.checkentry return type X-Git-Tag: v2.6.35-rc1~473^2~168^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0f38452ff73da7e9e0ddc68cd5c6b93c897ca0d;p=pandora-kernel.git netfilter: xtables: change xt_match.checkentry return type Restore function signatures from bool to int so that we can report memory allocation failures or similar using -ENOMEM rather than always having to pass -EINVAL back. This semantic patch may not be too precise (checking for functions that use xt_mtchk_param rather than functions referenced by xt_match.checkentry), but reviewed, it produced the intended result. // @@ type bool; identifier check, par; @@ -bool check +int check (struct xt_mtchk_param *par) { ... } // Signed-off-by: Jan Engelhardt --- Reading git-diff-tree failed