Re: [PATCH] pci-arbiter: Fix memory bugs

2019-11-24 Thread Samuel Thibault
Hello, Joan Lledó, le dim. 24 nov. 2019 20:47:44 +0100, a ecrit: > Working with nested arbiters I found a heap corruption when the nested > arbiter founds no devices b/c the master arbiter doesn't give it any > permissions. Attached is a patch to fix it. It also removes an unneeded > free(). Appl

[PATCH] pci-arbiter: Fix memory bugs

2019-11-24 Thread Joan Lledó via Bug reports for the GNU Hurd
From: Joan Lledó * pci-arbiter/pcifs.c: * init_file_system: Remove unnecessary free() * create_fs_tree: Fix a boundary overrun where no devices are found. --- pci-arbiter/pcifs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pci-arbiter/pcifs

[PATCH] pci-arbiter: Fix memory bugs

2019-11-24 Thread Joan Lledó
Hello, Working with nested arbiters I found a heap corruption when the nested arbiter founds no devices b/c the master arbiter doesn't give it any permissions. Attached is a patch to fix it. It also removes an unneeded free(). On the other hand, I noticed that the pointer allocated at alloc_file_