msm: synx: Fixes null pointer dereference in handle import
Fixes null pointer access during global handle allocation failure while importing local handle as global. Change-Id: I4f644af86151d8599e3ad51d82fbf6e7db4aca41 Signed-off-by: Priyanko Sarkar <quic_priyanko@quicinc.com>
This commit is contained in:
@@ -1725,8 +1725,8 @@ static int synx_native_import_handle(struct synx_client *client,
|
|||||||
old_entry);
|
old_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc != SYNX_SUCCESS)
|
if (IS_ERR_OR_NULL(map_entry))
|
||||||
return rc;
|
return -SYNX_INVALID;
|
||||||
|
|
||||||
*params->new_h_synx = h_synx;
|
*params->new_h_synx = h_synx;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user