thunderbolt: Check for ring 0 in tb_tunnel_alloc_dma()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 31 Mar 2023 10:01:32 +0000 (13:01 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 24 May 2023 06:39:34 +0000 (09:39 +0300)
commit814c96c959cfc147ecf8bf9ae3f34b8361316316
tree9c0508d7c4e51bf7b342e5036cbdf2d3bae4c272
parent44c026a73be8038f03dbdeef028b642880cf1511
thunderbolt: Check for ring 0 in tb_tunnel_alloc_dma()

Ring 0 cannot be used for anything else than control channel messages.
For this reason add a check to tb_tunnel_alloc_dma() and fail if someone
tries to do that.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tunnel.c