Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138624
b: refs/heads/master
c: 250981e
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Mar 16, 2009
1 parent 3d9b685 commit d6b0bc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f3fa48a7eaf5d1118cfda1650e8c759b2a116e4
refs/heads/master: 250981e6e1ef04947eccaa55e8c25ddcaa47a02e
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ void exit_thread(void)
{
struct task_struct *me = current;
struct thread_struct *t = &me->thread;
unsigned long *bp = t->io_bitmap_ptr;

if (me->thread.io_bitmap_ptr) {
if (bp) {
struct tss_struct *tss = &per_cpu(init_tss, get_cpu());

kfree(t->io_bitmap_ptr);
t->io_bitmap_ptr = NULL;
clear_thread_flag(TIF_IO_BITMAP);
/*
Expand All @@ -78,6 +78,7 @@ void exit_thread(void)
memset(tss->io_bitmap, 0xff, t->io_bitmap_max);
t->io_bitmap_max = 0;
put_cpu();
kfree(bp);
}

ds_exit_thread(current);
Expand Down

0 comments on commit d6b0bc7

Please sign in to comment.