mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
crypto: rockchip: v2: Fix pointer judgment errors
Change-Id: If13ef9030e42dc88feba351575dd0caa4ea4b66a Signed-off-by: Sisyphean Zhou <sisyphean.zhou@rock-chips.com>
This commit is contained in:
committed by
Tao Huang
parent
c4fc0a5153
commit
4fa6921109
@@ -160,7 +160,7 @@ static int rk_rsa_calc(struct akcipher_request *req, bool encypt)
|
||||
goto exit;
|
||||
|
||||
out = rk_bn_alloc(key_byte_size);
|
||||
if (!in)
|
||||
if (!out)
|
||||
goto exit;
|
||||
|
||||
tmp_buf = kzalloc(key_byte_size, GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user