projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bdev: fix NULL pointer dereference
[linux-2.6-block.git]
/
fs
/
block_dev.c
diff --git
a/fs/block_dev.c
b/fs/block_dev.c
index c3cdde87cc8c678542bab9c39f12477058986156..e17bdbdfe9b1cf17e721203f8942c127df742fcf 100644
(file)
--- a/
fs/block_dev.c
+++ b/
fs/block_dev.c
@@
-646,7
+646,7
@@
static struct dentry *bd_mount(struct file_system_type *fs_type,
{
struct dentry *dent;
dent = mount_pseudo(fs_type, "bdev:", &bdev_sops, NULL, BDEVFS_MAGIC);
- if (
dent
)
+ if (
!IS_ERR(dent)
)
dent->d_sb->s_iflags |= SB_I_CGROUPWB;
return dent;
}