Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2010 09:44:05 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r208939 - stable/8/sys/cam/scsi
Message-ID:  <201006090944.o599i5OX081698@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Wed Jun  9 09:44:05 2010
New Revision: 208939
URL: http://svn.freebsd.org/changeset/base/208939

Log:
  MFC r208800: scsi_cd: pass correct pointer to free()
  
  Found with:	Coverity Prevent(tm)
  CID:		2986
  Approved by:	re(kib)

Modified:
  stable/8/sys/cam/scsi/scsi_cd.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/geom/sched/   (props changed)

Modified: stable/8/sys/cam/scsi/scsi_cd.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_cd.c	Wed Jun  9 08:53:50 2010	(r208938)
+++ stable/8/sys/cam/scsi/scsi_cd.c	Wed Jun  9 09:44:05 2010	(r208939)
@@ -2528,7 +2528,7 @@ cdioctl(struct disk *dp, u_long cmd, voi
 
 			error = cdgetmode(periph, &params, AUDIO_PAGE);
 			if (error) {
-				free(&params.mode_buf, M_SCSICD);
+				free(params.mode_buf, M_SCSICD);
 				cam_periph_unlock(periph);
 				break;
 			}



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