diff options
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c index f07a17feb8a..8ca5d4bdfc7 100644 --- a/disk/part.c +++ b/disk/part.c @@ -80,6 +80,9 @@ block_dev_desc_t *get_dev(char* ifname, int dev) block_dev_desc_t* (*reloc_get_dev)(int dev); char *name; + if (!ifname) + return NULL; + name = drvr->name; #ifdef CONFIG_NEEDS_MANUAL_RELOC name += gd->reloc_off; |