提交 e5f9bb19 编写于 作者: E Eric Moore 提交者: James Bottomley

[SCSI] mpt2sas : driver name needs to be in the MPT2IOCINFO ioctl

The driver name needs to be at the beginining of the driver_version string in
MPT2IOCINFO ioctl.  This is the same behaviour is there already in the mptsas
driver.
Signed-off-by: NEric Moore <eric.moore@lsi.com>
Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
上级 77bdd9ee
...@@ -917,9 +917,9 @@ _ctl_getiocinfo(void __user *arg) ...@@ -917,9 +917,9 @@ _ctl_getiocinfo(void __user *arg)
karg.pci_information.u.bits.function = PCI_FUNC(ioc->pdev->devfn); karg.pci_information.u.bits.function = PCI_FUNC(ioc->pdev->devfn);
karg.pci_information.segment_id = pci_domain_nr(ioc->pdev->bus); karg.pci_information.segment_id = pci_domain_nr(ioc->pdev->bus);
karg.firmware_version = ioc->facts.FWVersion.Word; karg.firmware_version = ioc->facts.FWVersion.Word;
strncpy(karg.driver_version, MPT2SAS_DRIVER_VERSION, strcpy(karg.driver_version, MPT2SAS_DRIVER_NAME);
MPT2_IOCTL_VERSION_LENGTH); strcat(karg.driver_version, "-");
karg.driver_version[MPT2_IOCTL_VERSION_LENGTH - 1] = '\0'; strcat(karg.driver_version, MPT2SAS_DRIVER_VERSION);
karg.bios_version = le32_to_cpu(ioc->bios_pg3.BiosVersion); karg.bios_version = le32_to_cpu(ioc->bios_pg3.BiosVersion);
if (copy_to_user(arg, &karg, sizeof(karg))) { if (copy_to_user(arg, &karg, sizeof(karg))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册