]> mj.ucw.cz Git - pciutils.git/commit
Fix malloc error handling when pci_access is not fully initialized
authorMartin Mares <mj@ucw.cz>
Sun, 26 Dec 2021 19:42:53 +0000 (20:42 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 26 Dec 2021 19:42:53 +0000 (20:42 +0100)
commitb9927f149785380d3bc6975f43da224be6bb2b08
tree63cae2d12ce50a895de798d0991aa532285876fe
parent5bdf63b6b1bc35b59c4b3f47f7ca83ca1868155b
Fix malloc error handling when pci_access is not fully initialized

There were multiple cases, in which malloc failure was either unchecked,
or a->error was called even though it was NULL.
lib/init.c