]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: essiv - remove redundant null pointer check before kfree
authorChen Wandun <chenwandun@huawei.com>
Sat, 16 Nov 2019 06:51:00 +0000 (14:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:39 +0000 (16:43 +0100)
commit6a37099dc2a33e5bfa861c9fafe04ca303a063ad
treeff484afe2d432650fc9d731a42c6f2c267109c95
parent15ebdb7f665c5cb553bd9f95c1adbdf98b131ac1
crypto: essiv - remove redundant null pointer check before kfree

[ Upstream commit dcb0bc4ed34f27038339f269f2e557f3eb3bc04c ]

kfree has taken null pointer check into account. so it is safe to
remove the unnecessary check.

Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: b5a772adf45a ("crypto: essiv - Handle EBUSY correctly")
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/essiv.c