Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3833
b: refs/heads/master
c: 314b6a4
h: refs/heads/master
i:
  3831: 567dc23
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Jun 28, 2005
1 parent 8d02653 commit 75e4d33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 97afa0a25afb43a82954662773a9d48d61b2996a
refs/heads/master: 314b6a4d80a7a5217c86ffdca926b6f406da0e0e
10 changes: 5 additions & 5 deletions trunk/kernel/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static int kimage_normal_alloc(struct kimage **rimage, unsigned long entry,

static int kimage_crash_alloc(struct kimage **rimage, unsigned long entry,
unsigned long nr_segments,
struct kexec_segment *segments)
struct kexec_segment __user *segments)
{
int result;
struct kimage *image;
Expand Down Expand Up @@ -650,7 +650,7 @@ static kimage_entry_t *kimage_dst_used(struct kimage *image,
}
}

return 0;
return NULL;
}

static struct page *kimage_alloc_page(struct kimage *image,
Expand Down Expand Up @@ -696,7 +696,7 @@ static struct page *kimage_alloc_page(struct kimage *image,
/* Allocate a page, if we run out of memory give up */
page = kimage_alloc_pages(gfp_mask, 0);
if (!page)
return 0;
return NULL;
/* If the page cannot be used file it away */
if (page_to_pfn(page) >
(KEXEC_SOURCE_MEMORY_LIMIT >> PAGE_SHIFT)) {
Expand Down Expand Up @@ -754,7 +754,7 @@ static int kimage_load_normal_segment(struct kimage *image,
unsigned long maddr;
unsigned long ubytes, mbytes;
int result;
unsigned char *buf;
unsigned char __user *buf;

result = 0;
buf = segment->buf;
Expand Down Expand Up @@ -818,7 +818,7 @@ static int kimage_load_crash_segment(struct kimage *image,
unsigned long maddr;
unsigned long ubytes, mbytes;
int result;
unsigned char *buf;
unsigned char __user *buf;

result = 0;
buf = segment->buf;
Expand Down

0 comments on commit 75e4d33

Please sign in to comment.