]> git.baikalelectronics.ru Git - kernel.git/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)
commit8b35ed132e46df15848a47bededb538551b7d756
tree487e7c5e25fb91246712747cc9595f750cffa30b
parent87fb5ded915462e4f48f510c2b4f13a708b8825d
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