diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-05-05 22:51:42 +0200 |
---|---|---|
committer | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-05-05 22:51:42 +0200 |
commit | ff846d86e446245b0ba9cd83dda05a25e3460c50 (patch) | |
tree | 8dcd6c9369ead4bab2939e302efd093265af99f7 /mmt | |
parent | d23202f0c9ac3980efe932beefe5b6da8e546871 (diff) |
mmt: fix crash during last munmap
Regression from "mmt: let last_used_region never be NULL"
Diffstat (limited to 'mmt')
-rw-r--r-- | mmt/mmt_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mmt/mmt_trace.c b/mmt/mmt_trace.c index 20340838..e083064d 100644 --- a/mmt/mmt_trace.c +++ b/mmt/mmt_trace.c @@ -546,7 +546,7 @@ void mmt_free_region(struct mmt_mmap_data *m) /* if we are releasing last used region, then zero cache */ if (m == last_used_region) - last_used_region = NULL; + last_used_region = &null_region; else if (last_used_region > m && last_used_region != &null_region) /* if last used region was in area which just moved */ { /* then move pointer by -1 */ |