mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
limit usr ion fd up to 1023, original limitation 255 maybe cause overflow
This commit is contained in:
@@ -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)))
|
||||
return -EFAULT;
|
||||
#else
|
||||
usr_fd = reg->reg[tbl[i]] & 0xFF;
|
||||
offset = reg->reg[tbl[i]] >> 8;
|
||||
usr_fd = reg->reg[tbl[i]] & 0x3FF;
|
||||
offset = reg->reg[tbl[i]] >> 10;
|
||||
|
||||
#endif
|
||||
if (usr_fd != 0) {
|
||||
|
||||
Reference in New Issue
Block a user