Commit 0de336814107358bc8c4173bf9ce2d42445173fe

Authored by David Howells
Committed by Linus Torvalds
1 parent 29a41e9e02

CRED: Missing put_cred() in prepare_kernel_cred()

Missing put_cred() in the error handling path of prepare_kernel_cred().

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -529,6 +529,7 @@
529 529  
530 530 error:
531 531 put_cred(new);
  532 + put_cred(old);
532 533 return NULL;
533 534 }
534 535 EXPORT_SYMBOL(prepare_kernel_cred);