commit | 49b5e2e9586e6fb1d687991df10d273da72e2828 | [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 | 49d092f6dd6f71fb44c01200dcff191d045ace16 [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>