From nobody Wed Dec 27 12:25:42 2023 X-Original-To: dev-commits-src-all@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 4T0W7q01Q4z55Xvx; Wed, 27 Dec 2023 12:25:43 +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 4T0W7p63Ssz4Rwf; Wed, 27 Dec 2023 12:25:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703679942; 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=dkLM0HKud/4Y0bNshrifOcUH8tNGdgmrkaRZKz0nlj0=; b=wQMr4YxBAQv5tmcbCdi9WkToQEA6jsXAdR/P8A8boMX23InCgehqBAZ2G0QrZNOickrUBO Q34AyYXlVez+IqYN9ahWqZRk8nOfbcfk7Dyep0yzgxXsnvZiBfU6zuEpHaBVa6Lazd7a3P Wk0vlmeKaOoWZh4AQBCgkp0Hn5eTkbmJ+8LTEaz49aMmsk3iPxu1kbsQO4aO3Z/PIyRaPD MtKDSeEV0Polpeuoov58fqNcjJDWsTlVOYcVXhnkp5b83PrDFboY8Qb9G2ITlL7dbt49jI 2UrQbBFxAUuCNwzXCyCRUMZjsMeYUhDuP4IU+VOXKd9O2m/W0J+kfPd460cD3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703679942; a=rsa-sha256; cv=none; b=fTLIjMW+VI5JcFsDQQgLSDioDQdO+jRI+vlJXqW+ZauEeoewYYjXi5tUN5pNEGnv4G2XVY ryKzZxOU0ECpfWEAP6RsIf5JDPDZlP+7jyK5LDDLDom9IfrcqdUNKp6OwpiQVD9TaXjSjD /yv7hjibJDstOW0ZK5B1Pvd4FURE5/6YVJmBASqlby3a21/awFpnxgkBiWa3HfRPVTHdEP q4JeO92g/EDOzJBLxWyUNMjCdmIQE8Wf5qPS5/UOvKk64504jCS1qQW5q3bZ81BibubmKq 1L4OT2P7QOxPQW3yM68fcpGF1X5dFidkjPDJVvVQeXDkZxN8My+MENoj6nnEPQ== 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=1703679942; 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=dkLM0HKud/4Y0bNshrifOcUH8tNGdgmrkaRZKz0nlj0=; b=rFx8QsySwRsZZhPYkGwoImLvbREwhVB42kHOxS6Bnmyrmg7rG4JrE6ZhNoYIguzaZIt9ur pNH5O7LtokWMB5UMVbjqu4NEdLZV47LCV6vP5ek+qFPZrhp37jEY9okgpU0xequnrYVOT7 XjtP3R5mp27y+xuwJ+3pZj2On/XEgo19k3gvFkJdHiVaHfw8ZLBeeQpt5bSBhY9gofdhLZ B52ybZBE2zsMlJQJoRRNa8xYVnE9r7Wk7VsbXaYU5XA+wLnJf45l6u9chUcabaPX2ZfDG4 nXoCMfGZ4Ospa7niiGNw7/HhXBgtXZIfFm2bc60kREohqeI704hpyI7LLreMjg== 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 4T0W7p56xSzdrt; Wed, 27 Dec 2023 12:25:42 +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 3BRCPgKq061725; Wed, 27 Dec 2023 12:25:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BRCPgVv061722; Wed, 27 Dec 2023 12:25:42 GMT (envelope-from git) Date: Wed, 27 Dec 2023 12:25:42 GMT Message-Id: <202312271225.3BRCPgVv061722@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: 0a6b61a89a68 - stable/14 - ocs_fc: Use xpt_path_sbuf() to copy the path to sbuf. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/14 X-Git-Reftype: branch X-Git-Commit: 0a6b61a89a68339e358fe5420994eb9f1b8898d8 Auto-Submitted: auto-generated The branch stable/14 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=0a6b61a89a68339e358fe5420994eb9f1b8898d8 commit 0a6b61a89a68339e358fe5420994eb9f1b8898d8 Author: Ram Kishore Vegesna AuthorDate: 2023-12-13 07:56:40 +0000 Commit: Ram Kishore Vegesna CommitDate: 2023-12-27 12:19:51 +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++) {