boot: fix crash on early memory allocations
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
be49cc4839
commit
1d1dad34ce
10 changed files with 120 additions and 32 deletions
|
|
@ -28,6 +28,8 @@ int block_device_register(char *name, size_t lba_start, struct block_ops *ops, s
|
|||
int res = devfs_insert_device_blk(ret->name, ret, &dirent);
|
||||
(void)res;
|
||||
|
||||
krdy("Registered block device %s\n", name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -52,8 +54,6 @@ int block_check_partitions(struct block_device *bdev)
|
|||
|
||||
blkdev->part_of = bdev;
|
||||
blkdev->size = descs[i].lba_end - descs[i].lba_start;
|
||||
|
||||
krdy("registered block device /dev/%s\n", blkdev->name);
|
||||
}
|
||||
|
||||
if (descs)
|
||||
|
|
|
|||
Loading…
Reference in a new issue