svn commit: r320469 - stable/11/sys/compat/linux

Andriy Gapon avg at FreeBSD.org
Thu Jun 29 12:49:05 UTC 2017


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) */


More information about the svn-src-all mailing list