]> www.infradead.org Git - users/sagi/libnvme.git/commit
tree: Ignore NULL address pointer for phy slot lookup
authorDaniel Wagner <dwagner@suse.de>
Thu, 22 Jun 2023 12:09:50 +0000 (14:09 +0200)
committerDaniel Wagner <wagi@monom.org>
Thu, 22 Jun 2023 12:26:52 +0000 (14:26 +0200)
commitfa2ab270cba31f4523277f9c74d572caff6a42d4
tree3c5a643200bdc5d0788620d1120575b655813593
parentac1584a5eac1bb97960d94e90e1dac026ea41b49
tree: Ignore NULL address pointer for phy slot lookup

The PCI physical slot lookup works obviously only for physical cards.
Thus do not try to dereference the address pointer if it is a NULL
pointer.

Fixes: 42ac45359635 ("tree: Add PCI physical slot number for controller")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/tree.c