Skip to content
Commit e9fbb7c2 authored by Danila Chernetsov's avatar Danila Chernetsov Committed by Greg Kroah-Hartman
Browse files

apparmor: fix missing error check for rhashtable_insert_fast



[ Upstream commit 000518bc ]

 rhashtable_insert_fast() could return err value when memory allocation is
 failed. but unpack_profile() do not check values and this always returns
 success value. This patch just adds error check code.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: e025be0f ("apparmor: support querying extended trusted helper extra data")

Signed-off-by: default avatarDanila Chernetsov <listdansp@mail.ru>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8fb11fa4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment