diff options
author | Matt Fleming <matt@codeblueprint.co.uk> | 2016-08-15 16:29:20 +0200 |
---|---|---|
committer | Matt Fleming <matt@codeblueprint.co.uk> | 2016-09-09 17:08:48 +0200 |
commit | 22c2b77f419bdc9317f00b395283abd33157368e (patch) | |
tree | 379db94c904ad0916c7cbc9d11c0f0d2fc77f6e1 /virt | |
parent | x86/efi: Map in physical addresses in efi_map_region_fixed (diff) | |
download | linux-22c2b77f419bdc9317f00b395283abd33157368e.tar.xz linux-22c2b77f419bdc9317f00b395283abd33157368e.zip |
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 0d22f33bc37c ("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 <julia.lawall@lip6.fr>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Sylvain Chouleur <sylvain.chouleur@gmail.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions