Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331494
b: refs/heads/master
c: c564df4
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Leach authored and Russell King committed Sep 26, 2012
1 parent 6b2bb5c commit 0409bf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cabd1d9625c7d88acd143f4021fbef75394f154
refs/heads/master: c564df4db85aac8d1d65a56176a0a25f46138064
6 changes: 6 additions & 0 deletions trunk/arch/arm/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <linux/reboot.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/memblock.h>
#include <asm/pgtable.h>
#include <linux/of_fdt.h>
#include <asm/pgalloc.h>
Expand Down Expand Up @@ -44,6 +45,11 @@ int machine_kexec_prepare(struct kimage *image)
for (i = 0; i < image->nr_segments; i++) {
current_segment = &image->segment[i];

err = memblock_is_region_memory(current_segment->mem,
current_segment->memsz);
if (err)
return - EINVAL;

err = get_user(header, (__be32*)current_segment->buf);
if (err)
return err;
Expand Down

0 comments on commit 0409bf7

Please sign in to comment.