Skip to content

Commit 811e21c

Browse files
committed
Merge: spi: fix null pointer dereference within spi_sync
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4649 JIRA: https://issues.redhat.com/browse/RHEL-39777 CVE: CVE-2024-36930 Signed-off-by: Andrew Halaney <ahalaney@redhat.com> Approved-by: Brian Masney <bmasney@redhat.com> Approved-by: Eric Chanudet <echanude@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents a5ce845 + 91821f5 commit 811e21c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4194,6 +4194,7 @@ static int __spi_sync(struct spi_device *spi, struct spi_message *message)
41944194
wait_for_completion(&done);
41954195
status = message->status;
41964196
}
4197+
message->complete = NULL;
41974198
message->context = NULL;
41984199

41994200
return status;

0 commit comments

Comments
 (0)