diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-12-13 22:25:32 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-12-13 22:25:32 +0000 |
commit | 98a710af888d06d2a439bb51ceb2919923c4c734 (patch) | |
tree | 8ee7711dd5821e9ecb0bc8e05407d845467136e8 /sys/dev/ieee1394 | |
parent | 94e762f24e3fd4ba79feb72b146f6648a1ff0987 (diff) |
Fix the memory leak introduced with the use of fwohci_block_handler_set().
Diffstat (limited to 'sys/dev/ieee1394')
-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); |