Re: [PATCH] apparmor: Drop needless check in AppArmorSetMemoryLabel()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 04, 2020 at 16:31:03 +0100, Michal Privoznik wrote:
> The AppArmorSetMemoryLabel() is a callback that is called from
> qemuSecuritySetMemoryLabel() which never passes NULL as @mem.
> Therefore, there is no need to check whether @mem is NULL. Also,
> no other driver does that and just dereference it immediately.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/security/security_apparmor.c | 3 ---
>  1 file changed, 3 deletions(-)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux