xtensa: fix incorrect fd close in error case of simdisk_setup()
authorChengguang Xu <cgxu519@gmail.com>
Sun, 5 May 2019 14:26:06 +0000 (22:26 +0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 6 May 2019 21:36:43 +0000 (14:36 -0700)
commitfb1b79d88b88370a8177aefcd446b1b3d323e4c8
tree2c198b1739fc2b5a0abf76c4484a2bf031d554d0
parente93c9c99a629c61837d5a7fc2120cd2b6c70dbdd
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>
arch/xtensa/platforms/iss/simdisk.c