
7 Feb
2021
7 Feb
'21
1:17 a.m.
On Tue, 2 Feb 2021 at 16:22, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
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
v2: remove superfluous data checking
drivers/block/sandbox.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm, thanks!