Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Feb 2010 11:13:15 +0000 (UTC)
From:      Konstantin Belousov <kib@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: r204167 - stable/8/sys/fs/msdosfs
Message-ID:  <201002211113.o1LBDFaT006146@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Feb 21 11:13:15 2010
New Revision: 204167
URL: http://svn.freebsd.org/changeset/base/204167

Log:
  MFC r203866:
  Invalid filesystem might cause the bp to be never read.

Modified:
  stable/8/sys/fs/msdosfs/msdosfs_fat.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/netinet/   (props changed)

Modified: stable/8/sys/fs/msdosfs/msdosfs_fat.c
==============================================================================
--- stable/8/sys/fs/msdosfs/msdosfs_fat.c	Sun Feb 21 10:29:45 2010	(r204166)
+++ stable/8/sys/fs/msdosfs/msdosfs_fat.c	Sun Feb 21 11:13:15 2010	(r204167)
@@ -944,7 +944,8 @@ fillinusemap(pmp)
 		if (readcn == 0)
 			usemap_free(pmp, cn);
 	}
-	brelse(bp);
+	if (bp != NULL)
+		brelse(bp);
 	return (0);
 }
 



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