diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-03-27 15:25:00 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-03-27 15:25:00 +0000 |
commit | 22fc8b1e15138ff0846153d37cdf71fa9cbb6b25 (patch) | |
tree | 78936efdc75b3d8e34e1b896fda591112bed475b | |
parent | 0cdf31a62ced79c2ef32a1348e1afb7def50a41e (diff) |
Don't free() part of a struct.
Spotted by CID 1453297, and part of NetBSD's r1.51.
ok ratchov@
-rw-r--r-- | sys/dev/pci/yds.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c index f3c9f1045a4..e817135f8cf 100644 --- a/sys/dev/pci/yds.c +++ b/sys/dev/pci/yds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yds.c,v 1.54 2016/09/19 06:46:44 ratchov Exp $ */ +/* $OpenBSD: yds.c,v 1.55 2020/03/27 15:24:59 krw Exp $ */ /* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */ /* @@ -439,7 +439,6 @@ yds_allocate_slots(struct yds_softc *sc, int resuming) if (i) { printf("%s: couldn't alloc/map DSP DMA buffer, reason %d\n", sc->sc_dev.dv_xname, i); - free(p, M_DEVBUF, 0); return 1; } } |