cxl: Don't ignore add_process_element() result when attaching context
authorDaniel Axtens <dja@axtens.net>
Wed, 29 Jul 2015 04:07:22 +0000 (14:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 6 Aug 2015 05:10:19 +0000 (15:10 +1000)
commit368857c16c595eb7537cc0846708ddaa57a3a25b
tree83e72ec76ba616f04e1ec5544415e598bb8fd13d
parent62521ea6db1045a746d4625f40ef6be8b74f126d
cxl: Don't ignore add_process_element() result when attaching context

Currently when attaching a context in dedicated mode, we ignore the
result of add_process_element(), which could potentially fail.

If add_process_element() returns an error, pass it back to the caller.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/native.c