Commit d7a4bfca authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

misc: bcm-vk: unlock on error in bcm_to_h_msg_dequeue()

Unlock before returning on this error path.

Fixes: 111d746b ("misc: bcm-vk: add VK messaging support")
Acked-by: default avatarDesmond Yan <desmond.yan@broadcom.com>
Acked-by: default avatarScott Branden <scott.branden@broadcom.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YBfyb+jU5lDUe+5g@mwandaSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 930c922a
...@@ -855,7 +855,8 @@ s32 bcm_to_h_msg_dequeue(struct bcm_vk *vk) ...@@ -855,7 +855,8 @@ s32 bcm_to_h_msg_dequeue(struct bcm_vk *vk)
* that is fatal. * that is fatal.
*/ */
dev_crit(dev, "Kernel mem allocation failure.\n"); dev_crit(dev, "Kernel mem allocation failure.\n");
return -ENOMEM; total = -ENOMEM;
goto idx_err;
} }
/* flush rd pointer after a message is dequeued */ /* flush rd pointer after a message is dequeued */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment