pci: fix musl crash 41/37841/3
authorBenoît Ganne <bganne@cisco.com>
Mon, 19 Dec 2022 17:23:03 +0000 (18:23 +0100)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 18 Jan 2023 00:38:09 +0000 (00:38 +0000)
The musl libc does not support closedir(0) resulting in a crash. Only
call closedir() if we successfully opened it.

Type: fix

Change-Id: I3198454f44735501047afc42b94b2fea273212f4
Signed-off-by: Benoît Ganne <bganne@cisco.com>

No differences found