Commit fb1b79d8 authored by Chengguang Xu's avatar Chengguang Xu Committed by Max Filippov
Browse files

xtensa: fix incorrect fd close in error case of simdisk_setup()



dev->fd is opened in attach operation, so should not
close dev->fd in error case of simdisk_setup().

Signed-off-by: default avatarChengguang Xu <cgxu519@gmail.com>
Message-Id: <1557066367-4783-1-git-send-email-cgxu519@gmail.com>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent e93c9c99
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -297,7 +297,6 @@ out_alloc_disk:
	blk_cleanup_queue(dev->queue);
	dev->queue = NULL;
out_alloc_queue:
	simc_close(dev->fd);
	return -EIO;
}