Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs/efivarfs: Fix double kfree() in error path
Julia reported that we may double free 'name' in efivarfs_callback(), and that this bug was introduced by commit 0d22f33 ("efi: Don't use spinlocks for efi vars"). Move one of the kfree()s until after the point at which we know we are definitely on the success path. Reported-by: Julia Lawall <[email protected]> Acked-by: Julia Lawall <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Sylvain Chouleur <[email protected]> Signed-off-by: Matt Fleming <[email protected]>
- Loading branch information