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

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
......@@ -297,7 +297,6 @@ static int __init simdisk_setup(struct simdisk *dev, int which,
blk_cleanup_queue(dev->queue);
dev->queue = NULL;
out_alloc_queue:
simc_close(dev->fd);
return -EIO;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment