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