]> git.baikalelectronics.ru Git - kernel.git/commit
fs: handle failed audit_log_start properly
authorSasha Levin <sasha.levin@oracle.com>
Thu, 4 Oct 2012 23:57:31 +0000 (19:57 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Oct 2012 03:33:37 +0000 (23:33 -0400)
commitd0c8364b96f9c1d972e11ca3cccec1fd2d375890
tree4020ac7f88154d5dd919fdf371472ea9153a656e
parente3f933e20d3d7efa2ed058959a4d8919c8d67f5e
fs: handle failed audit_log_start properly

audit_log_start() may return NULL, this is unchecked by the caller in
audit_log_link_denied() and could cause a NULL ptr deref.

Introduced by commit 15942db0 ("fs: add link restriction audit reporting").

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit.c