aboutsummaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r--fs/char_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c
index 94b5f60076da..f77f7702fabe 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -576,7 +576,8 @@ static struct kobject *base_probe(dev_t dev, int *part, void *data)
576void __init chrdev_init(void) 576void __init chrdev_init(void)
577{ 577{
578 cdev_map = kobj_map_init(base_probe, &chrdevs_lock); 578 cdev_map = kobj_map_init(base_probe, &chrdevs_lock);
579 bdi_init(&directly_mappable_cdev_bdi); 579 if (bdi_init(&directly_mappable_cdev_bdi))
580 panic("Failed to init directly mappable cdev bdi");
580} 581}
581 582
582 583