Skip to content
Commit 000518bc authored by Danila Chernetsov's avatar Danila Chernetsov Committed by John Johansen
Browse files

apparmor: fix missing error check for rhashtable_insert_fast

 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>
parent 6d746795
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment