--- zzzz-none-000/linux-3.10.107/drivers/scsi/aic7xxx/aic7770_osm.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/scsi/aic7xxx/aic7770_osm.c 2021-02-04 17:41:59.000000000 +0000 @@ -85,10 +85,9 @@ int error; sprintf(buf, "ahc_eisa:%d", eisaBase >> 12); - name = kmalloc(strlen(buf) + 1, GFP_ATOMIC); + name = kstrdup(buf, GFP_ATOMIC); if (name == NULL) return (ENOMEM); - strcpy(name, buf); ahc = ahc_alloc(&aic7xxx_driver_template, name); if (ahc == NULL) return (ENOMEM);