All of lore.kernel.org
 help / color / mirror / Atom feed
* [Git][lvmteam/lvm2][main] device_id: fix lvmdevices update segfault
@ 2023-10-06 17:25 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2023-10-06 17:25 UTC (permalink / raw)
  To: lvm-devel



David Teigland pushed to branch main at LVM team / lvm2


Commits:
25a87ea1 by David Teigland at 2023-10-06T12:24:34-05:00
device_id: fix lvmdevices update segfault

>From commit 1901a47df12
"device_id: fix conditions for device_ids_refresh"

- - - - -


1 changed file:

- lib/device/device_id.c


Changes:

=====================================
lib/device/device_id.c
=====================================
@@ -2546,7 +2546,8 @@ void device_ids_validate(struct cmd_context *cmd, struct dm_list *scanned_devs,
 			dev = du->dev;
 			devname = dev_name(du->dev);
 
-			if (!device_list_find_dev(scanned_devs, du->dev) || (du->dev->flags & DEV_SCAN_NOT_READ)) {
+			if ((scanned_devs && !device_list_find_dev(scanned_devs, du->dev)) ||
+			    (du->dev->flags & DEV_SCAN_NOT_READ)) {
 				log_debug("Validate %s %s PVID %s on %s: not scanned",
 					  idtype_to_str(du->idtype), du->idname ?: ".", du->pvid ?: ".", devname);
 			} else {



View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/25a87ea16aba335b5f33621cd5ac6ff651f0bbb1

-- 
View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/25a87ea16aba335b5f33621cd5ac6ff651f0bbb1
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20231006/8cd6ab23/attachment.htm>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-06 17:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-06 17:25 [Git][lvmteam/lvm2][main] device_id: fix lvmdevices update segfault David Teigland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.