Skip to content

Commit fb1b79d

Browse files
Chengguang Xujcmvbkbc
authored andcommitted
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>
1 parent e93c9c9 commit fb1b79d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎arch/xtensa/platforms/iss/simdisk.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ static int __init simdisk_setup(struct simdisk *dev, int which,
297297
blk_cleanup_queue(dev->queue);
298298
dev->queue = NULL;
299299
out_alloc_queue:
300-
simc_close(dev->fd);
301300
return -EIO;
302301
}
303302

0 commit comments

Comments
 (0)