Author: mav Date: Wed Dec 13 21:17:00 2017 New Revision: 326835 URL: https://svnweb.freebsd.org/changeset/base/326835
Log: Reduce size of several on-stack string buffers. Submitted by: Dmitry Luhtionov <dmitryluhtio...@gmail.com> MFC after: 2 weeks Modified: head/sys/cam/ata/ata_da.c head/sys/cam/ata/ata_pmp.c head/sys/cam/nvme/nvme_da.c head/sys/cam/scsi/scsi_cd.c head/sys/cam/scsi/scsi_da.c head/sys/cam/scsi/scsi_sa.c Modified: head/sys/cam/ata/ata_da.c ============================================================================== --- head/sys/cam/ata/ata_da.c Wed Dec 13 20:48:20 2017 (r326834) +++ head/sys/cam/ata/ata_da.c Wed Dec 13 21:17:00 2017 (r326835) @@ -1411,7 +1411,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: head/sys/cam/ata/ata_pmp.c ============================================================================== --- head/sys/cam/ata/ata_pmp.c Wed Dec 13 20:48:20 2017 (r326834) +++ head/sys/cam/ata/ata_pmp.c Wed Dec 13 21:17:00 2017 (r326835) @@ -340,7 +340,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: head/sys/cam/nvme/nvme_da.c ============================================================================== --- head/sys/cam/nvme/nvme_da.c Wed Dec 13 20:48:20 2017 (r326834) +++ head/sys/cam/nvme/nvme_da.c Wed Dec 13 21:17:00 2017 (r326835) @@ -584,7 +584,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: head/sys/cam/scsi/scsi_cd.c ============================================================================== --- head/sys/cam/scsi/scsi_cd.c Wed Dec 13 20:48:20 2017 (r326834) +++ head/sys/cam/scsi/scsi_cd.c Wed Dec 13 21:17:00 2017 (r326835) @@ -477,7 +477,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: head/sys/cam/scsi/scsi_da.c ============================================================================== --- head/sys/cam/scsi/scsi_da.c Wed Dec 13 20:48:20 2017 (r326834) +++ head/sys/cam/scsi/scsi_da.c Wed Dec 13 21:17:00 2017 (r326835) @@ -1951,7 +1951,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: head/sys/cam/scsi/scsi_sa.c ============================================================================== --- head/sys/cam/scsi/scsi_sa.c Wed Dec 13 20:48:20 2017 (r326834) +++ head/sys/cam/scsi/scsi_sa.c Wed Dec 13 21:17:00 2017 (r326835) @@ -2296,7 +2296,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; /* _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"