From owner-svn-src-all@freebsd.org Wed Dec 27 00:34:15 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91357E8DFBE; Wed, 27 Dec 2017 00:34:15 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FD646F106; Wed, 27 Dec 2017 00:34:15 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBR0YEeL087033; Wed, 27 Dec 2017 00:34:14 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBR0YDoW087027; Wed, 27 Dec 2017 00:34:13 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201712270034.vBR0YDoW087027@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Wed, 27 Dec 2017 00:34:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r327228 - in stable/11/sys/cam: ata nvme scsi X-SVN-Group: stable-11 X-SVN-Commit-Author: mav X-SVN-Commit-Paths: in stable/11/sys/cam: ata nvme scsi X-SVN-Commit-Revision: 327228 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2017 00:34:15 -0000 Author: mav Date: Wed Dec 27 00:34:13 2017 New Revision: 327228 URL: https://svnweb.freebsd.org/changeset/base/327228 Log: MFC r326835: Reduce size of several on-stack string buffers. Submitted by: Dmitry Luhtionov Modified: stable/11/sys/cam/ata/ata_da.c stable/11/sys/cam/ata/ata_pmp.c stable/11/sys/cam/nvme/nvme_da.c stable/11/sys/cam/scsi/scsi_cd.c stable/11/sys/cam/scsi/scsi_da.c stable/11/sys/cam/scsi/scsi_sa.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/cam/ata/ata_da.c ============================================================================== --- stable/11/sys/cam/ata/ata_da.c Tue Dec 26 23:16:11 2017 (r327227) +++ stable/11/sys/cam/ata/ata_da.c Wed Dec 27 00:34:13 2017 (r327228) @@ -1386,7 +1386,7 @@ adasysctlinit(void *context, int pending) { struct cam_periph *periph; struct ada_softc *softc; - char tmpstr[80], tmpstr2[80]; + char tmpstr[32], tmpstr2[16]; periph = (struct cam_periph *)context; Modified: stable/11/sys/cam/ata/ata_pmp.c ============================================================================== --- stable/11/sys/cam/ata/ata_pmp.c Tue Dec 26 23:16:11 2017 (r327227) +++ stable/11/sys/cam/ata/ata_pmp.c Wed Dec 27 00:34:13 2017 (r327228) @@ -338,7 +338,7 @@ pmpsysctlinit(void *context, int pending) { struct cam_periph *periph; struct pmp_softc *softc; - char tmpstr[80], tmpstr2[80]; + char tmpstr[32], tmpstr2[16]; periph = (struct cam_periph *)context; if (cam_periph_acquire(periph) != CAM_REQ_CMP) Modified: stable/11/sys/cam/nvme/nvme_da.c ============================================================================== --- stable/11/sys/cam/nvme/nvme_da.c Tue Dec 26 23:16:11 2017 (r327227) +++ stable/11/sys/cam/nvme/nvme_da.c Wed Dec 27 00:34:13 2017 (r327228) @@ -592,7 +592,7 @@ ndasysctlinit(void *context, int pending) { struct cam_periph *periph; struct nda_softc *softc; - char tmpstr[80], tmpstr2[80]; + char tmpstr[32], tmpstr2[16]; periph = (struct cam_periph *)context; Modified: stable/11/sys/cam/scsi/scsi_cd.c ============================================================================== --- stable/11/sys/cam/scsi/scsi_cd.c Tue Dec 26 23:16:11 2017 (r327227) +++ stable/11/sys/cam/scsi/scsi_cd.c Wed Dec 27 00:34:13 2017 (r327228) @@ -469,7 +469,7 @@ cdsysctlinit(void *context, int pending) { struct cam_periph *periph; struct cd_softc *softc; - char tmpstr[80], tmpstr2[80]; + char tmpstr[32], tmpstr2[16]; periph = (struct cam_periph *)context; if (cam_periph_acquire(periph) != CAM_REQ_CMP) Modified: stable/11/sys/cam/scsi/scsi_da.c ============================================================================== --- stable/11/sys/cam/scsi/scsi_da.c Tue Dec 26 23:16:11 2017 (r327227) +++ stable/11/sys/cam/scsi/scsi_da.c Wed Dec 27 00:34:13 2017 (r327228) @@ -1919,7 +1919,7 @@ dasysctlinit(void *context, int pending) { struct cam_periph *periph; struct da_softc *softc; - char tmpstr[80], tmpstr2[80]; + char tmpstr[32], tmpstr2[16]; struct ccb_trans_settings cts; periph = (struct cam_periph *)context; Modified: stable/11/sys/cam/scsi/scsi_sa.c ============================================================================== --- stable/11/sys/cam/scsi/scsi_sa.c Tue Dec 26 23:16:11 2017 (r327227) +++ stable/11/sys/cam/scsi/scsi_sa.c Wed Dec 27 00:34:13 2017 (r327228) @@ -2294,7 +2294,7 @@ sasysctlinit(void *context, int pending) { struct cam_periph *periph; struct sa_softc *softc; - char tmpstr[80], tmpstr2[80]; + char tmpstr[32], tmpstr2[16]; periph = (struct cam_periph *)context; /*