mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 01:11:06 +00:00
Add nullptr error handling in part_blk, fix #1586
This commit is contained in:
parent
80893dfcfc
commit
5fec78fcd6
@ -72,6 +72,11 @@ int main()
|
|||||||
if (valid_mbr)
|
if (valid_mbr)
|
||||||
partition_table = &Mbr_partition_table::table();
|
partition_table = &Mbr_partition_table::table();
|
||||||
|
|
||||||
|
if (!partition_table) {
|
||||||
|
PERR("Aborting: no partition table found.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
enum { STACK_SIZE = 1024 * sizeof(Genode::size_t) };
|
enum { STACK_SIZE = 1024 * sizeof(Genode::size_t) };
|
||||||
static Cap_connection cap;
|
static Cap_connection cap;
|
||||||
static Rpc_entrypoint ep(&cap, STACK_SIZE, "part_ep");
|
static Rpc_entrypoint ep(&cap, STACK_SIZE, "part_ep");
|
||||||
|
Loading…
Reference in New Issue
Block a user