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

From: Tetsuo Handa
Date: Wed Apr 01 2020 - 08:40:09 EST


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.