From: Al Viro Date: Mon, 13 Feb 2012 01:56:29 +0000 (-0500) Subject: vfs: fix compat_sys_stat() handling of overflows in st_nlink X-Git-Tag: v3.3-rc5~30^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcf83067bf6eb101a35620d752bd559d473cfbaa;p=pandora-kernel.git vfs: fix compat_sys_stat() handling of overflows in st_nlink Massaged cp_compat_stat() into form closer to cp_new_stat(); the only real issue had been in handling of st_nlink overflows - native 32bit stat(2) returns -EOVERFLOW in such situations, compat one silently loses upper bits. Signed-off-by: Al Viro --- Reading git-diff-tree failed