summaryrefslogtreecommitdiffstats
path: root/REPORTING-BUGS
diff options
context:
space:
mode:
authorIan Munsie <imunsie@au1.ibm.com>2015-08-27 19:50:18 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-08-30 18:47:26 +1000
commitaf2a50bb0ce1ca7a9c4784813419c922bf2285df (patch)
tree51400c2c6e83151f08374a4de45297347e2b7788 /REPORTING-BUGS
parent259800135c654a098d9f0adfdd3d1f20eef1f231 (diff)
downloadlinux-af2a50bb0ce1ca7a9c4784813419c922bf2285df.tar.gz
linux-af2a50bb0ce1ca7a9c4784813419c922bf2285df.tar.bz2
linux-af2a50bb0ce1ca7a9c4784813419c922bf2285df.zip
cxl: Fix + cleanup error paths in cxl_dev_context_init
If the cxl_context_alloc() call fails, we return immediately without releasing the reference on the AFU device, allowing it to leak. This patch switches to using goto style error handling so that the device is released in common code for both error paths, and will also simplify things if we add additional initialisation in this function in the future. Signed-off-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions