projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68c0a19
)
arm64: ion: fix scatterlist alloc fault on ion_system heap
author
CMY
<cmy@rock-chips.com>
Tue, 10 Mar 2015 07:39:38 +0000
(15:39 +0800)
committer
CMY
<cmy@rock-chips.com>
Tue, 10 Mar 2015 07:45:14 +0000
(15:45 +0800)
Fix this bug:
WARNING: at lib/scatterlist.c:251 __sg_alloc_table+0x5c/0x15c()
Modules linked in: pvrsrvkm(O)
CPU: 2 PID: 582 Comm: Binder_5 Tainted: G O 3.10.0 #10
Call trace:
[<
ffffffc000088164
>] dump_backtrace+0x0/0x140
[<
ffffffc0000882b4
>] show_stack+0x10/0x1c
[<
ffffffc0008ccaf0
>] dump_stack+0x1c/0x28
[<
ffffffc0000a13c0
>] warn_slowpath_common+0x74/0x9c
[<
ffffffc0000a14ac
>] warn_slowpath_null+0x14/0x20
[<
ffffffc0002fadc4
>] __sg_alloc_table+0x58/0x15c
[<
ffffffc0002faee8
>] sg_alloc_table+0x20/0x50
[<
ffffffc00067ab7c
>] ion_system_heap_allocate+0x188/0x318
[<
ffffffc00067823c
>] ion_alloc+0x134/0x788
[<
ffffffc000678d68
>] ion_ioctl+0x15c/0x344
[<
ffffffc0001840ac
>] vfs_ioctl+0x20/0x3c
[<
ffffffc0001849b4
>] do_vfs_ioctl+0x478/0x550
[<
ffffffc000184ae8
>] SyS_ioctl+0x5c/0x88
Signed-off-by: CMY <cmy@rock-chips.com>
include/asm-generic/scatterlist.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/scatterlist.h
b/include/asm-generic/scatterlist.h
index 5de07355fad492b10b15227e7959f7cc08e6b044..8d3c787a946e9576b102f5fec9b3c16db9999852 100644
(file)
--- a/
include/asm-generic/scatterlist.h
+++ b/
include/asm-generic/scatterlist.h
@@
-31,4
+31,8
@@
struct scatterlist {
#define sg_dma_len(sg) ((sg)->length)
#endif
+#ifdef CONFIG_ARCH_ROCKCHIP
+#define ARCH_HAS_SG_CHAIN
+#endif
+
#endif /* __ASM_GENERIC_SCATTERLIST_H */