BACKPORT: Smack: Use GFP_KERNEL for smack_parse_opts_str().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 14 Nov 2016 11:12:55 +0000 (20:12 +0900)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:09:16 +0000 (17:09 +0100)
commitd8bef8ee923bcb95b4f02601be1abe9cc27946f6
treea546a16a1986a67ac7c38745005df6d177a4aae6
parent977e9bc8890868e55691412ac7cb3202a4aa36cd
BACKPORT: Smack: Use GFP_KERNEL for smack_parse_opts_str().

Since smack_parse_opts_str() is calling match_strdup() which uses
GFP_KERNEL, it is safe to use GFP_KERNEL from kcalloc() which is
called by smack_parse_opts_str().

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream 8c15d66e429afd099b66f05393527c23f85ca41c)
security/smack/smack_lsm.c