Skip to content
Commit 6d746795 authored by Markus Elfring's avatar Markus Elfring Committed by John Johansen
Browse files

apparmor: Return directly after a failed kzalloc() in two functions



1. Return directly after a call of the function “kzalloc” failed
   at the beginning in these function implementations.

2. Omit extra initialisations (for a few local variables)
   which became unnecessary with this refactoring.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 755a22c7
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