Skip to content

Commit 55b4aba

Browse files
committed
Merge: udmabuf: Restore ubuf->unpin_list initialization
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7254 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> Approved-by: Robert Foss <rfoss@kernel.org> Approved-by: Jocelyn Falempe <jfalempe@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Jarod Wilson <jarod@redhat.com>
2 parents 389e7d1 + 92d32da commit 55b4aba

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)