From nobody Wed Dec 27 12:32:45 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T0WHx6kTkz55YYj; Wed, 27 Dec 2023 12:32:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T0WHx5d7Bz4V8c; Wed, 27 Dec 2023 12:32:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703680365; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1sub6R3RCtZ5A6L++6T3f2ABEXjdsMcQtcQaktn6RnM=; b=cXjuVANFscQVOiE6RVlRldK16pY8qe7ckclBL4+AjflgINKFUfF3maA7qVD7fEnBOwqqXp Z42TpMkhxhyOJRre3gSyKXtOvCUnf2aYR2KQ4mPPy8x9bxQo8i708B4Oaz+WQoZn1BAFYD harsp/TuYVdG9m7cM1vhhd/qTQ1prB7r9y8lmRoGHepPmt6Amh6mo8/6mbcO6yboKFz4Zg YMMKF269E4waJmFFoBmerjncL7z+Z4VY4ZB1vP36jS3gu6NsBUIAeF0dg/f6KYG6+DmgcJ vjboUr/shHXyQCf4T+pYJPOcv/NMsksTIO060uIiFCB/B2ya+GOBrBj7gSS/Uw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703680365; a=rsa-sha256; cv=none; b=hklnoa/knjg+yMQ56r2qXGt1MHPpjSXyX+52KCyV2lJeDpTe/LsLJ0Fa2EaIaGKoyI0dxh OOGfy5QoDeuBs0y3YtF8XlbAH0sdA3tXhtC4TDDvzDhfMKI2s8bdICjDmRTjlQ8J3/95sW Ix4xgam0463SxFacvO5IuJvVPZPvcjTnpQ66pl9aEP98MGM84/vniQfAo82tS+0utdLJVb 5JlqxA9cwoffBOa/joc2lekRuGBk2Uu7X3I19kY1tZFjAdUjBGiEaHsTm38c7rawInnp3C gBlt/J1gzfYwtav+PYMesIO6M1LDOGXG+TNVFpcgSUu02AP3fT5zv6Hxndg3mQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703680365; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1sub6R3RCtZ5A6L++6T3f2ABEXjdsMcQtcQaktn6RnM=; b=rqaETfHQ6yIk7JrGkPFqQwfT93HbfOmWFcudGT7wop/qTqQ2bXd8v5zk9rjJlINX2T+OwL Bta5U6wey1M3k/VNhnUtTD0EW42p6DqxITDu0DxyPEUR8WGnsTmIG2NpP2hpJvldmnh2+e 3WT0KT/ANH6KX84I3MEngS7kBsxv2mrH+YrhIipHwO8jDa9rxxPeRrb7iUtgSn1mGFqtZT hR3+1mQ0G3AeCGK7ksXSrj/5hXak/kcFI/1pNVCs3iOifIKQxc0lXueS1Rx+2rDI5k+xqo 8bGRM8ZmUunCv4xjUV8elSgQcUCwNnC8cLMR8+9NtUAH4vbdaPETFzAE50w9/w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T0WHx4k9Szdsj; Wed, 27 Dec 2023 12:32:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BRCWjKH078029; Wed, 27 Dec 2023 12:32:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BRCWju6078026; Wed, 27 Dec 2023 12:32:45 GMT (envelope-from git) Date: Wed, 27 Dec 2023 12:32:45 GMT Message-Id: <202312271232.3BRCWju6078026@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ram Kishore Vegesna Subject: git: e8ff00285afb - stable/13 - ocs_fc: Use xpt_path_sbuf() to copy the path to sbuf. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ram X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e8ff00285afb3b9ab573f6c080a1095ab0f95c1e Auto-Submitted: auto-generated The branch stable/13 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=e8ff00285afb3b9ab573f6c080a1095ab0f95c1e commit e8ff00285afb3b9ab573f6c080a1095ab0f95c1e Author: Ram Kishore Vegesna AuthorDate: 2023-12-13 07:56:40 +0000 Commit: Ram Kishore Vegesna CommitDate: 2023-12-27 12:28:25 +0000 ocs_fc: Use xpt_path_sbuf() to copy the path to sbuf. Reported by: imp MFC after: 1 week (cherry picked from commit a9504d76ccdad240b7d5761f4208e252f57042dd) --- sys/dev/ocs_fc/ocs_cam.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_cam.c b/sys/dev/ocs_fc/ocs_cam.c index 0fa94083e898..a944c7628d85 100644 --- a/sys/dev/ocs_fc/ocs_cam.c +++ b/sys/dev/ocs_fc/ocs_cam.c @@ -1540,15 +1540,13 @@ static int32_t ocs_scsi_initiator_io_cb(ocs_io_t *io, } } else if (scsi_status != OCS_SCSI_STATUS_GOOD) { const char *err_desc = NULL; - char path_str[64]; char err_str[224]; struct sbuf sb; size_t i; sbuf_new(&sb, err_str, sizeof(err_str), 0); - xpt_path_string(ccb->ccb_h.path, path_str, sizeof(path_str)); - sbuf_cat(&sb, path_str); + xpt_path_sbuf(ccb->ccb_h.path, &sb); for (i = 0; i < (sizeof(ocs_status_desc) / sizeof(ocs_status_desc[0])); i++) {