]> git.baikalelectronics.ru Git - kernel.git/commit
smack: Remove the redundant lsm_inode_alloc
authorXiu Jianfeng <xiujianfeng@huawei.com>
Fri, 10 Jun 2022 09:23:07 +0000 (17:23 +0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 1 Aug 2022 18:26:09 +0000 (11:26 -0700)
commit13d92c94dbe4614ab2895e4d8b3f7aaebb79fc5a
tree00c0321d28adb5c7145477378959554882ab89d2
parenta6613cadf64fbcc941164771e42fc784730e6713
smack: Remove the redundant lsm_inode_alloc

It's not possible for inode->i_security to be NULL here because every
inode will call inode_init_always and then lsm_inode_alloc to alloc
memory for inode->security, this is what LSM infrastructure management
do, so remove this redundant code.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c