]> err.no Git - linux-2.6/commit
selinux: fix dentry_open() error check
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 27 Nov 2006 06:16:48 +0000 (15:16 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 27 Nov 2006 15:22:43 +0000 (10:22 -0500)
commitfc5d81e69d15c65ca20d9e5b4e242690e3e9c27d
tree487e7c5e25fb91246712747cc9595f750cffa30b
parent2ea5814472c3c910aed5c5b60f1f3b1000e353f1
selinux: fix dentry_open() error check

The return value of dentry_open() shoud be checked by IS_ERR().

Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/hooks.c