diff options
| author | Bruce Evans <bde@FreeBSD.org> | 2000-01-28 11:51:08 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 2000-01-28 11:51:08 +0000 |
| commit | b473d62c732dd5c6f65b4d0ffe1064850e931ced (patch) | |
| tree | e0bb54ca3e8819c1364c2e632a557a4fa5cedcb3 /sys/kern/subr_diskslice.c | |
| parent | 9b20e2ca56e02f3a5830d9017094a878eea39a0f (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_diskslice.c')
| -rw-r--r-- | sys/kern/subr_diskslice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index fb39f3d635b8..e42488e08baa 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -758,15 +758,16 @@ dsopen(dev, mode, flags, sspp, lp) if (msg == NULL && lp1->d_secsize != ssp->dss_secsize) msg = "inconsistent sector size"; if (msg != NULL) { - free(lp1, M_DEVBUF); if (sp->ds_type == DOSPTYP_386BSD /* XXX */) log(LOG_WARNING, "%s: cannot find label (%s)\n", sname, msg); + free(lp1, M_DEVBUF); continue; } if (lp1->d_flags & D_BADSECT) { log(LOG_ERR, "%s: bad sector table not supported\n", sname); + free(lp1, M_DEVBUF); continue; } set_ds_label(ssp, slice, lp1); |
