summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-05-05 12:22:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-09 10:24:01 +0200
commitb1fc302c934d3a9497d339c3f7a93a4e076f5f02 (patch)
tree6d041bf86bb6d5c47aeb397de979e83128a8cb96 /crypto
parent35027a6a68ab783e10f46cc4c6e620ab36f3d430 (diff)
downloadlinux-stable-b1fc302c934d3a9497d339c3f7a93a4e076f5f02.tar.gz
linux-stable-b1fc302c934d3a9497d339c3f7a93a4e076f5f02.tar.bz2
linux-stable-b1fc302c934d3a9497d339c3f7a93a4e076f5f02.zip
mailbox: mailbox-test: fix a locking issue in mbox_test_message_write()
[ Upstream commit 8fe72b76db79d694858e872370df49676bc3be8c ] There was a bug where this code forgot to unlock the tdev->mutex if the kzalloc() failed. Fix this issue, by moving the allocation outside the lock. Fixes: 2d1e952a2b8e ("mailbox: mailbox-test: Fix potential double-free in mbox_test_message_write()") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Lee Jones <lee@kernel.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions