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:
8cac568
)
limit usr ion fd up to 1023, original limitation 255 maybe cause overflow
author
ljf
<ljf@rock-chips.com>
Fri, 18 Apr 2014 02:11:08 +0000
(10:11 +0800)
committer
ljf
<ljf@rock-chips.com>
Fri, 18 Apr 2014 02:11:08 +0000
(10:11 +0800)
arch/arm/mach-rockchip/vcodec_service.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/vcodec_service.c
b/arch/arm/mach-rockchip/vcodec_service.c
index 0c340d4fcb4b98d371d3f0191501493d9492bcd8..87bd3a1af479387ddb278dd6d5dc1796f992b0a6 100755
(executable)
--- a/
arch/arm/mach-rockchip/vcodec_service.c
+++ b/
arch/arm/mach-rockchip/vcodec_service.c
@@
-630,8
+630,8
@@
static int vcodec_bufid_to_iova(struct vpu_service_info *pservice, u8 *tbl, int
if (copy_from_user(&usr_fd, ®->reg[addr_tbl_vpu_dec[i]], sizeof(usr_fd)))
\r
return -EFAULT;
\r
#else
\r
- usr_fd = reg->reg[tbl[i]] & 0xFF;
\r
- offset = reg->reg[tbl[i]] >>
8
;
\r
+ usr_fd = reg->reg[tbl[i]] & 0x
3
FF;
\r
+ offset = reg->reg[tbl[i]] >>
10
;
\r
\r
#endif
\r
if (usr_fd != 0) {
\r