Date: Wed, 27 Dec 2017 00:34:13 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> 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 Message-ID: <201712270034.vBR0YDoW087027@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <dmitryluhtionov@gmail.com> 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; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712270034.vBR0YDoW087027>