]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:17:50 +0000 (13:17 -0700)
commit88c0bb95c7e71d972f77ec4ea1be611b7e015066
tree73b2b7004279d8ea36810dc431a8f31819aa3c70
parent2410490a1429ed3cff56d7fe9a6085d5d2f9eaec
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>
fs/sysfs/file.c