Skip to content
Commit 507b8200 authored by Kangjie Lu's avatar Kangjie Lu Committed by Lorenzo Pieralisi
Browse files

PCI: endpoint: Fix a potential NULL pointer dereference



In case alloc_workqueue() fails, return -ENOMEM to avoid
potential NULL pointer dereferences.

Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
[lorenzo.pieralisi@arm.com: commit log and code update]
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
parent 993d5fe3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment