slimbus: slim-msm-ngd: Fix a memory leak in error handling

In one of the error handling scenarios during probe, slimbus NGD driver
does not release the memory allocated prior to the error scenario.

Fix the memory leak by freeing any prior memory allocation during an error.

CRs-Fixed: 2002163
Change-Id: I2f718637d0d3cee2b110baed74f2b9bf479aa144
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
1 file changed