Skip to content
Snippets Groups Projects
Commit 021ba7f1 authored by Xiaogang Chen's avatar Xiaogang Chen Committed by Christian König
Browse files

udmabuf: fix a buf size overflow issue during udmabuf creation

parent cb83f4b9
No related branches found
No related tags found
No related merge requests found
......@@ -393,7 +393,7 @@ static long udmabuf_create(struct miscdevice *device,
if (!ubuf)
return -ENOMEM;
pglimit = (size_limit_mb * 1024 * 1024) >> PAGE_SHIFT;
pglimit = ((u64)size_limit_mb * 1024 * 1024) >> PAGE_SHIFT;
for (i = 0; i < head->count; i++) {
pgoff_t subpgcnt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment