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
Lin Jinhan
parent
be6b2c52eb
commit
c623837a75
@ -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