]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut-install): prevent possible infinite recursion with suppliers
authorAdrien Thierry <athierry@redhat.com>
Wed, 15 Feb 2023 19:13:56 +0000 (14:13 -0500)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 21 Feb 2023 20:05:44 +0000 (20:05 +0000)
commit131822e26d76a3ce2028e9a545be2af066805629
tree73af622f67e89b120d26759d41d0bf17bb54a62f
parentf3a7172db5dc02a6b8620a31ec36a5a3c1b540d4
fix(dracut-install): prevent possible infinite recursion with suppliers

During search for fw_devlink suppliers, it's possible to encounter a
situation where supplier A depends on supplier B, and supplier B has a
parent node that depends on supplier A. This leads to an infinite
recursion.

To fix this, make sure suppliers are only processed once.

Signed-off-by: Adrien Thierry <athierry@redhat.com>
src/install/dracut-install.c