commit | 297b8b3ebfc2bdeb0b245b1dbe31ae8302d9b1b8 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Wed Feb 03 00:21:56 2021 +0100 |
committer | Simon Glass <sjg@chromium.org> | Wed Mar 03 19:17:25 2021 -0700 |
tree | 626847783fd0dd5a20aae0894055a45264ad21fd | |
parent | 67637d4b5ab70896c8a881022126f7c61f90a0f1 [diff] |
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>