projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29e5a8c
)
udev: add one more assertion
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 10 Oct 2022 15:42:44 +0000
(
00:42
+0900)
committer
Michael Biebl
<biebl@debian.org>
Fri, 14 Oct 2022 14:34:00 +0000
(15:34 +0100)
Follow-up for
6209bbbd4b1c9ed2886028ab2ee3df0a7d0e2494
.
(cherry picked from commit
f4a4493eb57bffec091c8f0d4bb846850e544aa4
)
Gbp-Pq: Name udev-add-one-more-assertion.patch
src/udev/udev-builtin-path_id.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-builtin-path_id.c
b/src/udev/udev-builtin-path_id.c
index 1084eb2d819720308aae97df089b24223d79c929..4cdc8d199215513b900ee5d72f47e9b557a16120 100644
(file)
--- a/
src/udev/udev-builtin-path_id.c
+++ b/
src/udev/udev-builtin-path_id.c
@@
-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)