diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 1dfa3994d7a9..8c94574b80b1 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -2597,13 +2597,10 @@ fdmisccmd(dev_t dev, u_int cmd, void *data) bp->bio_done = fdbiodone; bp->bio_flags = 0; - /* - * Now run the command. The wait loop is a version of bufwait() - * adapted for struct bio instead of struct buf and specialized - * for the current context. - */ + /* Now run the command. */ fdstrategy(bp); error = biowait(bp, "fdcmd"); + free(bp, M_TEMP); return (error); } diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 1dfa3994d7a9..8c94574b80b1 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -2597,13 +2597,10 @@ fdmisccmd(dev_t dev, u_int cmd, void *data) bp->bio_done = fdbiodone; bp->bio_flags = 0; - /* - * Now run the command. The wait loop is a version of bufwait() - * adapted for struct bio instead of struct buf and specialized - * for the current context. - */ + /* Now run the command. */ fdstrategy(bp); error = biowait(bp, "fdcmd"); + free(bp, M_TEMP); return (error); }