Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2021 07:21:02 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b9353e0b44a3 - main - isci: clear CCBs allocated on the stack
Message-ID:  <202105210721.14L7L21L010173@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9353e0b44a360dc8d45b640514aa8276b991289

commit b9353e0b44a360dc8d45b640514aa8276b991289
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-05-21 07:10:15 +0000
Commit:     Edward Tomasz Napierala <trasz@FreeBSD.org>
CommitDate: 2021-05-21 07:10:22 +0000

    isci: clear CCBs allocated on the stack
    
    Reviewed By:    gallatin, imp
    Sponsored by:   NetApp, Inc.
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D30303
---
 sys/dev/isci/isci_io_request.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/isci/isci_io_request.c b/sys/dev/isci/isci_io_request.c
index 711f5757ee5e..8d8d84b5b855 100644
--- a/sys/dev/isci/isci_io_request.c
+++ b/sys/dev/isci/isci_io_request.c
@@ -186,6 +186,7 @@ isci_io_request_complete(SCI_CONTROLLER_HANDLE_T scif_controller,
 			    cam_sim_path(isci_controller->sim),
 			    isci_remote_device->index, 0);
 
+			memset(&ccb_relsim, 0, sizeof(ccb_relsim));
 			xpt_setup_ccb(&ccb_relsim.ccb_h, path, 5);
 			ccb_relsim.ccb_h.func_code = XPT_REL_SIMQ;
 			ccb_relsim.ccb_h.flags = CAM_DEV_QFREEZE;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105210721.14L7L21L010173>