Date: Thu, 15 Aug 2002 19:03:12 +0200 From: =?iso-8859-15?Q?Aur=E9lien?= Nephtali <aurelien.nephtali@wanadoo.fr> To: stable@freebsd.org Subject: [PATCH] (was: Laptop doesn't free memory so old dmesg can be seen) Message-ID: <20020815170312.GA224@nebula.WorkGroup>
next in thread | raw e-mail | index | archive | help
--CdrF4e02JqNVZeln Content-Type: multipart/mixed; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, After informations given by Brook Davis (thanks to him :p) I investigate in /sys/kern/subr_prf.c . I just add a bzero() but it fixes the *problem*. I think it doesn't break anything but every comments are welcome. Can the attached patch be commited ? -- Aur=E9lien --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="subr_prf.c.patch" --- subr_prf.c.old Thu Aug 15 18:59:18 2002 +++ subr_prf.c Thu Aug 15 18:58:45 2002 @@ -855,6 +855,7 @@ msgbufp->msg_size = (char *)msgbufp - cp; } msgbufp->msg_ptr = cp; + bzero(msgbufp->msg_ptr, ((char *)msgbufp - cp)); if (msgbufmapped && oldp != msgbufp) msgbufcopy(oldp); msgbufmapped = 1; --M9NhX3UHpAaciwkO-- --CdrF4e02JqNVZeln Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9W97QDNsbHbt8ok8RAh/3AKCdBH3IVJYifZk2WKrQb4EiEs6sPACeMWOY 4TtaEwCI5H0RVTbHYViN9+4= =7YOS -----END PGP SIGNATURE----- --CdrF4e02JqNVZeln-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020815170312.GA224>