[PATCH] audit: fix kstrdup() error check
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 22 Dec 2006 09:10:02 +0000 (01:10 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 22 Dec 2006 16:55:49 +0000 (08:55 -0800)
commit3e1fbd12c958591695f89b11f9c6ec08d002e358
tree9b830a3a3ada95b25ef0d0c3d6d306eb18dda066
parent5c95da9f5abeff865b7273b59e1a3c50a2c5acb2
[PATCH] audit: fix kstrdup() error check

kstrdup() returns NULL on error.

Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/auditfilter.c