Skip to content
Commit fec63753 authored by Gen Zhang's avatar Gen Zhang Committed by Paul Moore
Browse files

selinux: fix a missing-check bug in selinux_sb_eat_lsm_opts()



In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It
returns NULL when fails. So 'arg' should be checked. And 'mnt_opts'
should be freed when error.

Signed-off-by: default avatarGen Zhang <blackgod016574@gmail.com>
Fixes: 99dbbb59

 ("selinux: rewrite selinux_sb_eat_lsm_opts()")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent e2e0e097
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment