Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106165
b: refs/heads/master
c: 7fccf03
h: refs/heads/master
i:
  106163: eea65cd
v: v3
  • Loading branch information
WANG Cong authored and Linus Torvalds committed Jul 26, 2008
1 parent 1b332c5 commit 88adefa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: f1d82698029b92a88f5500b99f66514b6dee2bc3
refs/heads/master: 7fccf0326536c1b245b98740d489abb9aab69a12
8 changes: 2 additions & 6 deletions trunk/kernel/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,14 +589,12 @@ static void kimage_free_extra_pages(struct kimage *image)
kimage_free_page_list(&image->unuseable_pages);

}
static int kimage_terminate(struct kimage *image)
static void kimage_terminate(struct kimage *image)
{
if (*image->entry != 0)
image->entry++;

*image->entry = IND_DONE;

return 0;
}

#define for_each_kimage_entry(image, ptr, entry) \
Expand Down Expand Up @@ -997,9 +995,7 @@ asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments,
if (result)
goto out;
}
result = kimage_terminate(image);
if (result)
goto out;
kimage_terminate(image);
}
/* Install the new kernel, and Uninstall the old */
image = xchg(dest_image, image);
Expand Down

0 comments on commit 88adefa

Please sign in to comment.