ciss(4) malformed vendor/product data
Sean Bruno
seanwbruno at gmail.com
Wed Apr 10 23:42:16 UTC 2013
On Tue, 2013-04-09 at 12:42 -0700, Sean Bruno wrote:
> Index: ciss.c
> ===================================================================
> --- ciss.c (revision 249314)
> +++ ciss.c (working copy)
> @@ -3346,9 +3346,12 @@
>
> cl = &sc->ciss_logical[bus][target];
>
> - padstr(inq->vendor, "COMPAQ", 8);
> - padstr(inq->product,
> ciss_name_ldrive_org(cl->cl_ldrive->fault_tolerance), 8);
> - padstr(inq->revision,
> ciss_name_ldrive_status(cl->cl_lstatus->status),
> 16);
> + padstr(inq->vendor, "COMPAQ",
> + SID_VENDOR_SIZE);
> + padstr(inq->product,
> ciss_name_ldrive_org(cl->cl_ldrive->fault_tolerance),
> + SID_PRODUCT_SIZE);
> + padstr(inq->revision,
> ciss_name_ldrive_status(cl->cl_lstatus->status),
> + SID_REVISION_SIZE);
> }
> }
>
>
This has been comitted at svn R249349
Sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-scsi/attachments/20130410/b78ac5e1/attachment.sig>
More information about the freebsd-scsi
mailing list