diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-15 21:25:55 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-15 21:25:55 +0000 |
| commit | c3bdb2f779b3bc7557c59ba3197bbfa3bfea3301 (patch) | |
| tree | e9531c98458312e773fd6ccf8743ccaa6fb77429 | |
| parent | f05c39e9d5620815f750b7a223bda4da6a31173a (diff) | |
Notes
| -rw-r--r-- | sys/dev/fdc/fdc.c | 7 | ||||
| -rw-r--r-- | sys/isa/fd.c | 7 |
2 files changed, 4 insertions, 10 deletions
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); } |
