We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb83f4b commit 021ba7fCopy full SHA for 021ba7f
drivers/dma-buf/udmabuf.c
@@ -393,7 +393,7 @@ static long udmabuf_create(struct miscdevice *device,
393
if (!ubuf)
394
return -ENOMEM;
395
396
- pglimit = (size_limit_mb * 1024 * 1024) >> PAGE_SHIFT;
+ pglimit = ((u64)size_limit_mb * 1024 * 1024) >> PAGE_SHIFT;
397
for (i = 0; i < head->count; i++) {
398
pgoff_t subpgcnt;
399
0 commit comments