Skip to content

Commit 92d32da

Browse files
committed
udmabuf: Restore ubuf->unpin_list initialization
JIRA: https://issues.redhat.com/browse/RHEL-109567 Upstream Status: RHEL only Fixes: 516519c ("Merge DRM changes from upstream v6.14..v6.15") A change dropping the list initialization was included in the DRM backport, however, the list is still in use. Restore the list initialization code. Signed-off-by: José Expósito <jexposit@redhat.com>
1 parent cd02113 commit 92d32da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma-buf/udmabuf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ static long udmabuf_create(struct miscdevice *device,
398398
if (!ubuf)
399399
return -ENOMEM;
400400

401+
INIT_LIST_HEAD(&ubuf->unpin_list);
401402
pglimit = ((u64)size_limit_mb * 1024 * 1024) >> PAGE_SHIFT;
402403
for (i = 0; i < head->count; i++) {
403404
if (!PAGE_ALIGNED(list[i].offset))

0 commit comments

Comments
 (0)