]> git.karo-electronics.de Git - linux-beck.git/commit
cxl: Fix error handling in _cxl_cx4_setup_msi_irqs()
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 30 Oct 2016 21:34:51 +0000 (22:34 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Nov 2016 11:41:08 +0000 (22:41 +1100)
commit28e323e5a0b21b3665eb6e136ca8bbce10fd29d7
treeb30a54fd82da25ff01f7c4f778d43af1e4be8f04
parent5cd4f5cec2374d2c09299211d2b357cc160e49a0
cxl: Fix error handling in _cxl_cx4_setup_msi_irqs()

'cxl_dev_context_init()' returns an error pointer in case of error, not
NULL. So test it with IS_ERR.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/api.c