From 98a710af888d06d2a439bb51ceb2919923c4c734 Mon Sep 17 00:00:00 2001 From: Thierry Deval Date: Fri, 13 Dec 2002 22:25:32 +0000 Subject: Fix the memory leak introduced with the use of fwohci_block_handler_set(). --- sys/dev/ieee1394/fwscsi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') 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); -- cgit v1.2.3