projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b06ac5a
)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
author
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 7 Sep 2010 21:04:59 +0000
(14:04 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 7 Sep 2010 21:04:59 +0000
(14:04 -0700)
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
sysfs: checking for NULL instead of ERR_PTR
fs/sysfs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/sysfs/file.c
b/fs/sysfs/file.c
index 1b27b5688f62fdfd8abd40386c6e1ece7aa1bf49..da3fefe91a8f855f59e62c84f0ef70a2a9bd0524 100644
(file)
--- a/
fs/sysfs/file.c
+++ b/
fs/sysfs/file.c
@@
-340,7
+340,7
@@
static int sysfs_open_file(struct inode *inode, struct file *file)
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 */
This page took
0.029947 seconds
and
5
git commands to generate.