Smack: fix a NULL dereference in wrong smack_import_entry() usage
'commit e774ad68 ("smack: pass error code through pointers")' made this function return proper error codes instead of NULL. Reflect that. This is a fix for a NULL dereference introduced in 'commit 21abb1ec ("Smack: IPv6 host labeling")' echo "$SOME_IPV6_ADDR \"test" > /smack/ipv6host (this should return EINVAL, it doesn't) cat /smack/ipv6host (derefences 0x000a) Signed-off-by: NLukasz Pawelczyk <l.pawelczyk@samsung.com> Acked-by: NCasey Schaufler <casey@schaufler-ca.com>
Showing
想要评论请 注册 或 登录