[PATCH -next] smack: fix a missing-check bug in smack_sb_eat_lsm_opts()

Tetsuo Handa penguin-kernel at I-love.SAKURA.ne.jp
Wed Apr 1 12:39:34 UTC 2020


On 2020/04/01 16:10, Chen Zhou wrote:
> In smack_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul().
> It returns NULL when fails, add check for it.

Thanks. But this check is not needed, for smack_add_opt() returns NULL if arg == NULL.



More information about the Linux-security-module-archive mailing list