diff options
author | Chengguang Xu <cgxu519@gmail.com> | 2019-05-05 16:26:06 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-05-06 23:36:43 +0200 |
commit | fb1b79d88b88370a8177aefcd446b1b3d323e4c8 (patch) | |
tree | 2c198b1739fc2b5a0abf76c4484a2bf031d554d0 /arch/xtensa/platforms | |
parent | Linux 5.1 (diff) | |
download | linux-fb1b79d88b88370a8177aefcd446b1b3d323e4c8.tar.xz linux-fb1b79d88b88370a8177aefcd446b1b3d323e4c8.zip |
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: Chengguang Xu <cgxu519@gmail.com>
Message-Id: <1557066367-4783-1-git-send-email-cgxu519@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/platforms')
-rw-r--r-- | arch/xtensa/platforms/iss/simdisk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/xtensa/platforms/iss/simdisk.c b/arch/xtensa/platforms/iss/simdisk.c index 026211e7ab09..5fac8b781453 100644 --- a/arch/xtensa/platforms/iss/simdisk.c +++ b/arch/xtensa/platforms/iss/simdisk.c @@ -297,7 +297,6 @@ out_alloc_disk: blk_cleanup_queue(dev->queue); dev->queue = NULL; out_alloc_queue: - simc_close(dev->fd); return -EIO; } |