mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-22 21:08:49 +00:00
Odroid XU4 fixes and upstream patches
This commit is contained in:
parent
357b08e41b
commit
fd9f55157c
3 changed files with 1506 additions and 29 deletions
|
@ -10,30 +10,6 @@ index 6944160a5631..f73ae0748cbc 100644
|
|||
EXTRAVERSION =
|
||||
NAME = TOSSUG Baby Fish
|
||||
|
||||
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
|
||||
index 8ca636cf8618..1a00c33a5b7e 100644
|
||||
--- a/arch/arm/mm/dma-mapping.c
|
||||
+++ b/arch/arm/mm/dma-mapping.c
|
||||
@@ -1355,12 +1355,19 @@ static int arm_iommu_mmap_attrs(struct device *dev, struct vm_area_struct *vma,
|
||||
unsigned long uaddr = vma->vm_start;
|
||||
unsigned long usize = vma->vm_end - vma->vm_start;
|
||||
struct page **pages = __iommu_get_pages(cpu_addr, attrs);
|
||||
+ unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT;
|
||||
+ unsigned long off = vma->vm_pgoff;
|
||||
|
||||
vma->vm_page_prot = __get_dma_pgprot(attrs, vma->vm_page_prot);
|
||||
|
||||
if (!pages)
|
||||
return -ENXIO;
|
||||
|
||||
+ if (off >= nr_pages || (usize >> PAGE_SHIFT) > nr_pages - off)
|
||||
+ return -ENXIO;
|
||||
+
|
||||
+ pages += off;
|
||||
+
|
||||
do {
|
||||
int ret = vm_insert_page(vma, uaddr, *pages++);
|
||||
if (ret) {
|
||||
diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c
|
||||
index c019b7aaf776..553e00a432ec 100644
|
||||
--- a/arch/arm/plat-orion/common.c
|
||||
|
|
1497
patch/kernel/odroidxu4-default/patch-3.10.95-96.patch
Normal file
1497
patch/kernel/odroidxu4-default/patch-3.10.95-96.patch
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue