Re: [PATCH 3/7] util: make a copy of iova_tree_remove_parameter

2022-08-23 Thread Eugenio Perez Martin
On Tue, Aug 23, 2022 at 8:18 AM Jason Wang wrote: > > > 在 2022/8/20 00:53, Eugenio Pérez 写道: > > It's convenient to call iova_tree_remove from a map returned from > > iova_tree_find or iova_tree_find_iova. > > > The looks like a hint of the defect of current API. > > > > With the current code th

Re: [PATCH 3/7] util: make a copy of iova_tree_remove_parameter

2022-08-22 Thread Jason Wang
在 2022/8/20 00:53, Eugenio Pérez 写道: It's convenient to call iova_tree_remove from a map returned from iova_tree_find or iova_tree_find_iova. The looks like a hint of the defect of current API. With the current code this is not possible, since we will free it, and then we will try to se

[PATCH 3/7] util: make a copy of iova_tree_remove_parameter

2022-08-19 Thread Eugenio Pérez
It's convenient to call iova_tree_remove from a map returned from iova_tree_find or iova_tree_find_iova. With the current code this is not possible, since we will free it, and then we will try to search for it again. Fix it making a copy of the argument. Not applying a fixes tag, since there is no