summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2016-06-28 12:06:58 -0400
committerPaul Moore <paul@paul-moore.com>2016-06-28 15:40:17 -0400
commit76a658c20efd541a62838d9ff68ce94170d7a549 (patch)
treec14c93cbd7f2a74398b7a8be7548d88043eca8e1 /kernel/audit.c
parent188e3c5cd2b672620291e64a21f1598fe91e40b6 (diff)
downloadop-kernel-dev-76a658c20efd541a62838d9ff68ce94170d7a549.zip
op-kernel-dev-76a658c20efd541a62838d9ff68ce94170d7a549.tar.gz
audit: move calcs after alloc and check when logging set loginuid
Move the calculations of values after the allocation in case the allocation fails. This avoids wasting effort in the rare case that it fails, but more importantly saves us extra logic to release the tty ref. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud