Use device_set_desc_copy in the generic ident as its used on a temp buffer.

This commit is contained in:
Søren Schmidt 2007-11-26 19:08:08 +00:00
parent 0d985fab86
commit 91b4ff52c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173950

View File

@ -198,7 +198,7 @@ ata_generic_ident(device_t dev)
char buffer[64];
sprintf(buffer, "%s ATA controller", ata_pcivendor2str(dev));
device_set_desc(dev, buffer);
device_set_desc_copy(dev, buffer);
ctlr->chipinit = ata_generic_chipinit;
return 0;
}