commit | d751751a9f7f2f8e406d5a09565d337f009835d6 | [log] [tgz] |
---|---|---|
author | Marek Szyprowski <m.szyprowski@samsung.com> | Fri Feb 24 12:13:37 2017 +0100 |
committer | Joerg Roedel <jroedel@suse.de> | Tue Mar 21 14:58:18 2017 +0100 |
tree | b5ed3a1536a8e0418dd738a17ad356d0eba882e7 | |
parent | 97da3854c526d3a6ee05c849c96e48d21527606c [diff] |
iommu/iova: Consolidate code for adding new node to iovad domain rbtree This patch consolidates almost the same code used in iova_insert_rbtree() and __alloc_and_insert_iova_range() functions. While touching this code, replace BUG() with WARN_ON(1) to avoid taking down the whole system in case of corrupted iova tree or incorrect calls. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>