]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sysfs: checking for NULL instead of ERR_PTR
authorDan Carpenter <error27@gmail.com>
Wed, 25 Aug 2010 07:12:29 +0000 (09:12 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:44 +0000 (18:07 -0500)
commit33f19e56a712a1d7c3dead0ef0fb335a25083e6d
tree59b132f408af5ed228a82c2650a660a0d578c33f
parent7582f1a38302e41552204d52fbe40962f98fba8e
sysfs: checking for NULL instead of ERR_PTR

commit 57f9bdac2510cd7fda58e4a111d250861eb1ebeb upstream.

d_path() returns an ERR_PTR and it doesn't return NULL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/sysfs/file.c