mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
This commit is contained in:
parent
e93c9c99a6
commit
fb1b79d88b
1 changed files with 0 additions and 1 deletions
|
|
@ -297,7 +297,6 @@ out_alloc_disk:
|
|||
blk_cleanup_queue(dev->queue);
|
||||
dev->queue = NULL;
|
||||
out_alloc_queue:
|
||||
simc_close(dev->fd);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue