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 759deb2 commit 81beffcCopy full SHA for 81beffc
drivers/dma-buf/udmabuf.c
@@ -186,7 +186,7 @@ static long udmabuf_create(struct miscdevice *device,
186
if (!ubuf)
187
return -ENOMEM;
188
189
- pglimit = (size_limit_mb * 1024 * 1024) >> PAGE_SHIFT;
+ pglimit = ((u64)size_limit_mb * 1024 * 1024) >> PAGE_SHIFT;
190
for (i = 0; i < head->count; i++) {
191
if (!IS_ALIGNED(list[i].offset, PAGE_SIZE))
192
goto err;
0 commit comments