u-boot-brain/drivers/block
Heinrich Schuchardt 297b8b3ebf sandbox: host bind must close file descriptor
Each invocation of the 'host bind' command with a file name argument opens
a file descriptor. The next invocation of the 'host bind' command destroys
the block device but the file descriptor remains open. The same holds true
for the 'unbind blk' command.

Close the file descriptor when unbinding the host block device.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-03-03 19:17:25 -07:00
..
blk_legacy.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
blk-uclass.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
blkcache.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ide.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
Kconfig blk: Allow control of the block cache in TPL 2019-07-10 16:52:58 -06:00
Makefile blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more 2019-12-03 08:43:24 -05:00
sandbox.c sandbox: host bind must close file descriptor 2021-03-03 19:17:25 -07:00