cvs commit: src/sys/cam/scsi scsi_cd.c scsi_da.c

From: Kenneth D. Merry <>
Date: Tue, 25 Mar 2003 20:38:39 -0800 (PST)
ken         2003/03/25 20:38:39 PST

  FreeBSD src repository

  Modified files:
    sys/cam/scsi         scsi_cd.c scsi_da.c 
  Clean up dynamically allocated sysctl variables when we run dacleanup() and
  cdcleanup().  This fixes sysctl problems ("can't re-use a leaf") when
  someone adds another peripheral at the same unit number.  (e.g. rescan da0,
  it goes away, then rescan again and da0 comes back, but since we haven't
  cleaned up the sysctl variables from the last da0 instance, we can't
  register the variables for the new instance under the same name.)
  Reported by:    njl
  Tested by:      njl
  Revision  Changes    Path
  1.77      +6 -0      src/sys/cam/scsi/scsi_cd.c
  1.135     +8 -0      src/sys/cam/scsi/scsi_da.c
Received on Tue Mar 25 2003 - 20:38:40 UTC