Dan Carpenter 181427a7e0 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: Dan Carpenter <error27@gmail.com>
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
2010-03-15 07:51:29 +11:00
..
2010-03-15 07:51:29 +11:00
2010-02-16 11:17:16 +11:00
2009-02-12 15:19:00 +11:00
2010-02-15 09:00:24 +11:00
2010-03-01 09:36:31 +11:00