From c59b4dcdb43c521137255108b061b63a4fd8117c Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Tue, 11 May 2010 22:51:13 +0000 Subject: [PATCH] Pick up the right change, not it's close cousin. The one previously submitted was wrong. Point hat: mjacob X-MFC: 207933 MFC after: 1 week --- sys/cam/scsi/scsi_sg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/cam/scsi/scsi_sg.c b/sys/cam/scsi/scsi_sg.c index de20731a3c30..09d30a6aace4 100644 --- a/sys/cam/scsi/scsi_sg.c +++ b/sys/cam/scsi/scsi_sg.c @@ -304,10 +304,12 @@ sgregister(struct cam_periph *periph, void *arg) UID_ROOT, GID_OPERATOR, 0600, "%s%d", periph->periph_name, periph->unit_number); if (periph->unit_number < 26) { - (void)make_dev_alias(softc->dev, "sg%c", periph->unit_number + 'a'); + (void)make_dev_alias(softc->dev, "sg%c", + periph->unit_number + 'a'); } else { (void)make_dev_alias(softc->dev, "sg%c%c", - ((periph->unit_number / 26) - 1) + 'a', periph->unit_number + 'a'); + ((periph->unit_number / 26) - 1) + 'a', + (periph->unit_number % 26) + 'a'); } cam_periph_lock(periph); softc->dev->si_drv1 = periph;