On Sun, Jul 20, 2003 at 03:02:21PM +0200, Divacky Roman wrote:
+> I might be wrong but this:
+> 
+>         free(mp->mnt_data, M_UNIONFSMNT);       /* XXX */
+>      mp->mnt_data = 0;
+>      
+> seems to me wrong.... and might cause crashes etc.
+> am I correct or wrong?

Could you describe scenario when this could be dangerous? Or why do you
think it is?

This memory is allocated while mounting unionfs file system,
so it is quite natural to free this memory while unmounting file system.

-- 
Pawel Jakub Dawidek                       [EMAIL PROTECTED]
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to