]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: add one more assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Oct 2022 15:42:44 +0000 (00:42 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 10 Oct 2022 22:17:20 +0000 (00:17 +0200)
Follow-up for 6209bbbd4b1c9ed2886028ab2ee3df0a7d0e2494.

src/udev/udev-builtin-path_id.c

index e4da1899c9f65bda8b9676c7ab8522dbc5ccc858..d58a3d5d60d60212b089710096ab9e5d086a51de 100644 (file)
@@ -556,6 +556,7 @@ static int find_real_nvme_parent(sd_device *dev, sd_device **ret) {
          *   /sys/devices/pci0000:00/0000:00:1c.4/0000:3c:00.0/nvme/nvme0 */
 
         assert(dev);
+        assert(ret);
 
         r = sd_device_get_sysname(dev, &sysname);
         if (r < 0)