to potentially freed memory
+2004-04-25 Ion Badulescu <ionut@moisil.badula.org>
+
+ * amd/map.c (free_map_if_success): avoid dereferencing a pointer
+ to potentially freed memory
+
2004-02-26 Erez Zadok <ezk@cs.sunysb.edu>
* minor new port: i386-unknown-freebsd5.2.1.
* SUCH DAMAGE.
*
*
- * $Id: map.c,v 1.47 2004/01/06 03:56:20 ezk Exp $
+ * $Id: map.c,v 1.48 2004/04/25 23:58:46 ib42 Exp $
*
*/
{
am_node *mp = (am_node *) arg;
mntfs *mf = mp->am_mnt;
+ wchan_t wchan = get_mntfs_wchan(mf);
/*
* Not unmounting any more
/*
* Wakeup anything waiting for this unmount
*/
- wakeup(get_mntfs_wchan(mf));
+ wakeup(wchan);
}