Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2017 12:49:04 +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-11@freebsd.org
Subject:   svn commit: r320469 - stable/11/sys/compat/linux
Message-ID:  <201706291249.v5TCn436097908@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Thu Jun 29 12:49:03 2017
New Revision: 320469
URL: https://svnweb.freebsd.org/changeset/base/320469

Log:
  MFC r320353: linux_getdents, linux_readdir: fix mismatch between malloc and free tags
  
  Approved by:	re (gjb)

Modified:
  stable/11/sys/compat/linux/linux_file.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linux/linux_file.c
==============================================================================
--- stable/11/sys/compat/linux/linux_file.c	Thu Jun 29 06:28:54 2017	(r320468)
+++ stable/11/sys/compat/linux/linux_file.c	Thu Jun 29 12:49:03 2017	(r320469)
@@ -394,9 +394,9 @@ linux_getdents(struct thread *td, struct linux_getdent
 	td->td_retval[0] = retval;
 
 out:
-	free(lbuf, M_LINUX);
+	free(lbuf, M_TEMP);
 out1:
-	free(buf, M_LINUX);
+	free(buf, M_TEMP);
 	return (error);
 }
 
@@ -522,9 +522,9 @@ linux_readdir(struct thread *td, struct linux_readdir_
 	if (error == 0)
 		td->td_retval[0] = linuxreclen;
 
-	free(lbuf, M_LINUX);
+	free(lbuf, M_TEMP);
 out:
-	free(buf, M_LINUX);
+	free(buf, M_TEMP);
 	return (error);
 }
 #endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */



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