diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-14 22:17:27 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-19 06:57:59 +0100 |
commit | e5c4289a9dc08a3d28360e24bd326cca11c9b9d6 (patch) | |
tree | 6a5e105f14b42ee61a3e80512ec7ea518e2f98ad /src/network/networkd-sriov.c | |
parent | network: sr-iov: drop conflicting sections (diff) | |
download | systemd-e5c4289a9dc08a3d28360e24bd326cca11c9b9d6.tar.xz systemd-e5c4289a9dc08a3d28360e24bd326cca11c9b9d6.zip |
network: sr-iov: add missing assertion
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-sriov.c | 2 |
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; |