Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2006 17:53:36 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 108501 for review
Message-ID:  <200610261753.k9QHra1o061628@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=108501

Change 108501 by rdivacky@rdivacky_witten on 2006/10/26 17:52:47

	Dont panic when mountpoint is not found.

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_stats.c#4 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_stats.c#4 (text+ko) ====

@@ -481,6 +481,9 @@
                         break;
         mtx_unlock(&mountlist_mtx);
 
+	if (mp == NULL)
+	   	return (EINVAL);
+
         bzero(&linux_ustat, sizeof(linux_ustat));
         linux_ustat.f_tfree = mp->mnt_stat.f_bfree;
         linux_ustat.f_tinode = mp->mnt_stat.f_ffree;



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