Close a potential mbuf and/or mbuf cluster leak in the client-side NFS
statfs() code. Free the whole chain, not just the first one.
This commit is contained in:
parent
deb5da2449
commit
dddd7320ee
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
|
||||
* $Id: nfs_vfsops.c,v 1.81 1999/01/28 17:32:01 dillon Exp $
|
||||
* $Id: nfs_vfsops.c,v 1.82 1999/02/16 10:49:54 dfr Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -283,7 +283,7 @@ nfs_statfs(mp, sbp, p)
|
||||
nfsm_postop_attr(vp, retattr);
|
||||
if (error) {
|
||||
if (mrep != NULL)
|
||||
m_free(mrep);
|
||||
m_freem(mrep);
|
||||
goto nfsmout;
|
||||
}
|
||||
nfsm_dissect(sfp, struct nfs_statfs *, NFSX_STATFS(v3));
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
|
||||
* $Id: nfs_vfsops.c,v 1.81 1999/01/28 17:32:01 dillon Exp $
|
||||
* $Id: nfs_vfsops.c,v 1.82 1999/02/16 10:49:54 dfr Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -283,7 +283,7 @@ nfs_statfs(mp, sbp, p)
|
||||
nfsm_postop_attr(vp, retattr);
|
||||
if (error) {
|
||||
if (mrep != NULL)
|
||||
m_free(mrep);
|
||||
m_freem(mrep);
|
||||
goto nfsmout;
|
||||
}
|
||||
nfsm_dissect(sfp, struct nfs_statfs *, NFSX_STATFS(v3));
|
||||
|
Loading…
Reference in New Issue
Block a user