PERFORCE change 108501 for review
Roman Divacky
rdivacky at FreeBSD.org
Thu Oct 26 17:53:41 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=108501
Change 108501 by rdivacky at 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;
More information about the p4-projects
mailing list