Updated to 2.6.32.27
/fs/sysfs/file.c
blob:f5ea4680f15fdca8a009f66a979bd6d3805244f6 -> blob:7118a383a87a2623fe0250958c133d2ad385b801
--- fs/sysfs/file.c
+++ fs/sysfs/file.c
@@ -340,7 +340,7 @@ static int sysfs_open_file(struct inode
char *p;
p = d_path(&file->f_path, last_sysfs_file, sizeof(last_sysfs_file));
- if (p)
+ if (!IS_ERR(p))
memmove(last_sysfs_file, p, strlen(p) + 1);
/* need attr_sd for attr and ops, its parent for kobj */