]> git.baikalelectronics.ru Git - uboot.git/commit
efi_selftest: block device: avoid read after free
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 21 Dec 2018 23:37:41 +0000 (00:37 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Dec 2018 01:04:25 +0000 (02:04 +0100)
commit609ecc36d43eba62ff2df3a6872c2fe0d9de7895
tree0e1bf07eb0283cfc68f5de4ffa72932c944b85d4
parented168a92842b2951d7a415d7cc2d72eef81fc7ae
efi_selftest: block device: avoid read after free

Reading the position in a file after closing the same results in a read
after free.

Correct the sequence in the test.

Reported-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_selftest/efi_selftest_block_device.c