diff options
author | 2002-12-13 22:25:31 +0000 | |
---|---|---|
committer | 2002-12-13 22:25:31 +0000 | |
commit | 13636d5d5dbbc8610861fb28d852fc80bb5d6928 (patch) | |
tree | a524922bb0defb67ecd69564af8f918ddf7c7c59 | |
parent | might help to add the actual tests. (diff) | |
download | wireguard-openbsd-13636d5d5dbbc8610861fb28d852fc80bb5d6928.tar.xz wireguard-openbsd-13636d5d5dbbc8610861fb28d852fc80bb5d6928.zip |
Fix the memory leak introduced with the use of fwohci_block_handler_set().
-rw-r--r-- | sys/dev/ieee1394/fwscsi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ieee1394/fwscsi.c b/sys/dev/ieee1394/fwscsi.c index 5c254efe150..210804a74fd 100644 --- a/sys/dev/ieee1394/fwscsi.c +++ b/sys/dev/ieee1394/fwscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fwscsi.c,v 1.2 2002/12/13 21:35:11 tdeval Exp $ */ +/* $OpenBSD: fwscsi.c,v 1.3 2002/12/13 22:25:31 tdeval Exp $ */ /* * Copyright (c) 2002 Thierry Deval. All rights reserved. @@ -870,6 +870,8 @@ fwscsi_command_wait(void *aux, struct sbp2_status_notification *notification) if (data_elm != NULL) { data_ab = data_elm->data_ab; if (data_ab) { + data_ab->ab_addr = SBP2_CMD_DATA + + ((u_int64_t)data_elm->data_hash << 8); sc->sc_fwnode->sc1394_unreg(data_ab, TRUE); if ((void *)data_ab->ab_data > (void *)1) { /* XXX */ free(data_ab->ab_data, M_1394DATA); |