From: Al Viro Date: Wed, 1 Aug 2012 09:07:04 +0000 (+0400) Subject: delousing target_core_file a bit X-Git-Tag: v3.6-rc1~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbc6e0222d79e78925fe20733844a796a4b72cf9;p=pandora-kernel.git delousing target_core_file a bit * set_fs(KERNEL_DS) + getname() is probably the weirdest implementation of strdup() I've seen. Especially since they don't to copy it at all... * filp_open() never returns NULL; it's ERR_PTR(-E...) on failure. * file->f_dentry is never going to be NULL, TYVM. * match_strdup() + snprintf() + kfree() is a bloody weird way to spell match_strlcpy(). Pox on cargo-cult programmers... Signed-off-by: Al Viro --- Reading git-diff-tree failed