diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-06-29 18:21:41 -0400 | 
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-06-29 18:21:41 -0400 | 
| commit | d18bfacff20f08aecf01bb971b110ca108eef3c7 (patch) | |
| tree | 255f862839c593c796e609328575b611e3f56cf3 /kernel/kexec.c | |
| parent | a68db763af9b676590c3fe9ec3f17bf18015eb2f (diff) | |
| parent | fd782a4a99d2d3e818b9465c427b10f7f027d7da (diff) | |
Auto merge with /home/aegl/GIT/linus
Diffstat (limited to 'kernel/kexec.c')
| -rw-r--r-- | kernel/kexec.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c index 7843548cf2d9..cdd4dcd8fb63 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c  | |||
| @@ -241,7 +241,7 @@ static int kimage_normal_alloc(struct kimage **rimage, unsigned long entry, | |||
| 241 | 241 | ||
| 242 | static int kimage_crash_alloc(struct kimage **rimage, unsigned long entry, | 242 | static int kimage_crash_alloc(struct kimage **rimage, unsigned long entry, | 
| 243 | unsigned long nr_segments, | 243 | unsigned long nr_segments, | 
| 244 | struct kexec_segment *segments) | 244 | struct kexec_segment __user *segments) | 
| 245 | { | 245 | { | 
| 246 | int result; | 246 | int result; | 
| 247 | struct kimage *image; | 247 | struct kimage *image; | 
| @@ -650,7 +650,7 @@ static kimage_entry_t *kimage_dst_used(struct kimage *image, | |||
| 650 | } | 650 | } | 
| 651 | } | 651 | } | 
| 652 | 652 | ||
| 653 | return 0; | 653 | return NULL; | 
| 654 | } | 654 | } | 
| 655 | 655 | ||
| 656 | static struct page *kimage_alloc_page(struct kimage *image, | 656 | static struct page *kimage_alloc_page(struct kimage *image, | 
| @@ -696,7 +696,7 @@ static struct page *kimage_alloc_page(struct kimage *image, | |||
| 696 | /* Allocate a page, if we run out of memory give up */ | 696 | /* Allocate a page, if we run out of memory give up */ | 
| 697 | page = kimage_alloc_pages(gfp_mask, 0); | 697 | page = kimage_alloc_pages(gfp_mask, 0); | 
| 698 | if (!page) | 698 | if (!page) | 
| 699 | return 0; | 699 | return NULL; | 
| 700 | /* If the page cannot be used file it away */ | 700 | /* If the page cannot be used file it away */ | 
| 701 | if (page_to_pfn(page) > | 701 | if (page_to_pfn(page) > | 
| 702 | (KEXEC_SOURCE_MEMORY_LIMIT >> PAGE_SHIFT)) { | 702 | (KEXEC_SOURCE_MEMORY_LIMIT >> PAGE_SHIFT)) { | 
| @@ -754,7 +754,7 @@ static int kimage_load_normal_segment(struct kimage *image, | |||
| 754 | unsigned long maddr; | 754 | unsigned long maddr; | 
| 755 | unsigned long ubytes, mbytes; | 755 | unsigned long ubytes, mbytes; | 
| 756 | int result; | 756 | int result; | 
| 757 | unsigned char *buf; | 757 | unsigned char __user *buf; | 
| 758 | 758 | ||
| 759 | result = 0; | 759 | result = 0; | 
| 760 | buf = segment->buf; | 760 | buf = segment->buf; | 
| @@ -818,7 +818,7 @@ static int kimage_load_crash_segment(struct kimage *image, | |||
| 818 | unsigned long maddr; | 818 | unsigned long maddr; | 
| 819 | unsigned long ubytes, mbytes; | 819 | unsigned long ubytes, mbytes; | 
| 820 | int result; | 820 | int result; | 
| 821 | unsigned char *buf; | 821 | unsigned char __user *buf; | 
| 822 | 822 | ||
| 823 | result = 0; | 823 | result = 0; | 
| 824 | buf = segment->buf; | 824 | buf = segment->buf; | 
