summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmail.com>2019-05-05 22:26:06 +0800
committerMax Filippov <jcmvbkbc@gmail.com>2019-05-06 14:36:43 -0700
commitfb1b79d88b88370a8177aefcd446b1b3d323e4c8 (patch)
tree2c198b1739fc2b5a0abf76c4484a2bf031d554d0 /arch/xtensa
parente93c9c99a629c61837d5a7fc2120cd2b6c70dbdd (diff)
downloadlinux-stable-fb1b79d88b88370a8177aefcd446b1b3d323e4c8.tar.gz
linux-stable-fb1b79d88b88370a8177aefcd446b1b3d323e4c8.tar.bz2
linux-stable-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')
-rw-r--r--arch/xtensa/platforms/iss/simdisk.c1
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;
}