[PATCH v2 1/1] sandbox: host bind must close file descriptor

Simon Glass sjg at chromium.org
Wed Feb 3 22:42:22 CET 2021


On Tue, 2 Feb 2021 at 16:22, Heinrich Schuchardt <xypron.glpk at 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 at gmx.de>
> ---
> v2:
>         remove superfluous data checking
> ---
>  drivers/block/sandbox.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list