summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-sriov.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-01-14 22:17:27 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-01-19 06:57:59 +0100
commite5c4289a9dc08a3d28360e24bd326cca11c9b9d6 (patch)
tree6a5e105f14b42ee61a3e80512ec7ea518e2f98ad /src/network/networkd-sriov.c
parentnetwork: sr-iov: drop conflicting sections (diff)
downloadsystemd-e5c4289a9dc08a3d28360e24bd326cca11c9b9d6.tar.xz
systemd-e5c4289a9dc08a3d28360e24bd326cca11c9b9d6.zip
network: sr-iov: add missing assertion
Diffstat (limited to '')
-rw-r--r--src/network/networkd-sriov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-sriov.c b/src/network/networkd-sriov.c
index da98ef9c8b..1443d40d4c 100644
--- a/src/network/networkd-sriov.c
+++ b/src/network/networkd-sriov.c
@@ -12,6 +12,8 @@
static int sr_iov_new(SRIOV **ret) {
SRIOV *sr_iov;
+ assert(ret);
+
sr_iov = new(SRIOV, 1);
if (!sr_iov)
return -ENOMEM;