cvs commit: src/sys/dev/acpica acpi.c

Nate Lawson njl at FreeBSD.org
Fri May 20 05:00:44 GMT 2005


njl         2005-05-20 05:00:44 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi.c 
  Log:
  If devclass_get_devices() returns success but a count of 0, free the
  pointer.  If kernel malloc(0) returns a valid pointer, it needs to be
  freed.  If it returns NULL, it's ok to free this also.
  
  Submitted by:   pjd
  Reviewed by:    imp, dfr
  Obtained from:  Coverity Prevent
  
  Revision  Changes    Path
  1.213     +4 -1      src/sys/dev/acpica/acpi.c


More information about the cvs-src mailing list