Skip to content

Commit

Permalink
xtensa: fix incorrect fd close in error case of simdisk_setup()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chengguang Xu authored and Max Filippov committed May 6, 2019
1 parent e93c9c9 commit fb1b79d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/xtensa/platforms/iss/simdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fb1b79d

Please sign in to comment.