Skip to content
Commit ccfcde84 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Patrick Daly
Browse files

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.

Change-Id: I4f508c8d64d45a7a99e2cc169ab304267aec3736
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Git-commit: d751751a9f7f2f8e406d5a09565d337f009835d6
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 42352e8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment