diff options
author | julian <julian@FreeBSD.org> | 2002-05-30 23:41:51 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2002-05-30 23:41:51 +0000 |
commit | 3de740d4f6e11153289b83dc4d3fd88c877e642c (patch) | |
tree | 287610768898dbed1ef3b9ba2e471ad04446da20 /sys/dev | |
parent | b9960bece1e6a75b3a099a2a06043f0399257440 (diff) | |
download | FreeBSD-src-3de740d4f6e11153289b83dc4d3fd88c877e642c.zip FreeBSD-src-3de740d4f6e11153289b83dc4d3fd88c877e642c.tar.gz |
Add missing unlock
Submitted by: dirkx@covalent.net
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/my/if_my.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/my/if_my.c b/sys/dev/my/if_my.c index 70e8c34..9ceccf9 100644 --- a/sys/dev/my/if_my.c +++ b/sys/dev/my/if_my.c @@ -1151,8 +1151,10 @@ my_list_rx_init(struct my_softc * sc) for (i = 0; i < MY_RX_LIST_CNT; i++) { cd->my_rx_chain[i].my_ptr = (struct my_desc *) & ld->my_rx_list[i]; - if (my_newbuf(sc, &cd->my_rx_chain[i]) == ENOBUFS) + if (my_newbuf(sc, &cd->my_rx_chain[i]) == ENOBUFS) { + MY_UNLOCK(sc); return (ENOBUFS); + } if (i == (MY_RX_LIST_CNT - 1)) { cd->my_rx_chain[i].my_nextdesc = &cd->my_rx_chain[0]; ld->my_rx_list[i].my_next = vtophys(&ld->my_rx_list[0]); |