summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
authorSalyzyn, Mark <mark_salyzyn@adaptec.com>2007-07-23 16:13:48 +0200
committerJames Bottomley <jejb@mulgrave.localdomain>2007-07-23 23:58:43 +0200
commitbbf17d6483a7feb4c1eeef9fd553976d4f394e4c (patch)
tree5135afa16b01bd0a7df511769cbb36c3b77315e9 /drivers/scsi/aacraid
parent[SCSI] aacraid: Fix security hole (diff)
downloadlinux-bbf17d6483a7feb4c1eeef9fd553976d4f394e4c.tar.xz
linux-bbf17d6483a7feb4c1eeef9fd553976d4f394e4c.zip
[SCSI] aacraid: sysfs adapter reset/status format change.
We need to newline terminate responses from nodes within the sysfs tree, the Adapter status value reported by the reset adapter node is adjusted. Signed-off-by: Mark Salyzyn <aacraid@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/linit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index c709dc8ad99d..d27c838002a5 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -826,7 +826,7 @@ static ssize_t aac_show_reset_adapter(struct class_device *class_dev,
tmp = aac_adapter_check_health(dev);
if ((tmp == 0) && dev->in_reset)
tmp = -EBUSY;
- len = snprintf(buf, PAGE_SIZE, "0x%x", tmp);
+ len = snprintf(buf, PAGE_SIZE, "0x%x\n", tmp);
return len;
}