Skip to content
Commit 181427a7 authored by Dan Carpenter's avatar Dan Carpenter Committed by James Morris
Browse files

tomoyo: fix potential use after free



The original code returns a freed pointer.  This function is expected to
return NULL on errors.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent bca14dd1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment