security: inode: fix a missing check for securityfs_create_file
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 21:00:25 +0000 (16:00 -0500)
committerJames Morris <james.morris@microsoft.com>
Wed, 10 Apr 2019 17:34:29 +0000 (10:34 -0700)
commitd1a0846006e4325cc951ca0b05c02ed1d0865006
tree53172e71d612f2300b07e4792f35ba02b5416849
parent0b9dc6c9f01c4a726558b82a3b6082a89d264eb5
security: inode: fix a missing check for securityfs_create_file

securityfs_create_file  may fail. The fix checks its status and
returns the error code upstream if it fails.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/inode.c