Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 05:00:44 +0000 (UTC)
From:      Nate Lawson <njl@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/acpica acpi.c
Message-ID:  <200505200500.j4K50ifm008943@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505200500.j4K50ifm008943>