mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't do silly thing if the disk_create() event gets canceled.
Approved by: re/scottl
This commit is contained in:
parent
30fd5d085d
commit
43f0db6cc5
1 changed files with 3 additions and 1 deletions
|
|
@ -295,12 +295,14 @@ g_disk_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g
|
|||
}
|
||||
|
||||
static void
|
||||
g_disk_create(void *arg, int flag __unused)
|
||||
g_disk_create(void *arg, int flag)
|
||||
{
|
||||
struct g_geom *gp;
|
||||
struct g_provider *pp;
|
||||
struct disk *dp;
|
||||
|
||||
if (flag == EV_CANCEL)
|
||||
return;
|
||||
g_topology_assert();
|
||||
dp = arg;
|
||||
gp = g_new_geomf(&g_disk_class, "%s%d", dp->d_name, dp->d_unit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue