diff options
author | Chengguang Xu <cgxu519@gmail.com> | 2019-05-05 22:26:07 +0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-05-06 14:36:44 -0700 |
commit | fd58015ca9fed04fd52009e2dbcb7aef6940f734 (patch) | |
tree | 49aaf12f4be9fc54817dc3585d58da2bf83bb1de /arch/xtensa | |
parent | fb1b79d88b88370a8177aefcd446b1b3d323e4c8 (diff) | |
download | linux-fd58015ca9fed04fd52009e2dbcb7aef6940f734.tar.bz2 |
xtensa: set proper error code for simdisk_setup()
Change error code to -ENOMEM from -EIO because
the error is related to memory allocating.
Signed-off-by: Chengguang Xu <cgxu519@gmail.com>
Message-Id: <1557066367-4783-2-git-send-email-cgxu519@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/platforms/iss/simdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/platforms/iss/simdisk.c b/arch/xtensa/platforms/iss/simdisk.c index 5fac8b781453..f9cd45860bee 100644 --- a/arch/xtensa/platforms/iss/simdisk.c +++ b/arch/xtensa/platforms/iss/simdisk.c @@ -297,7 +297,7 @@ out_alloc_disk: blk_cleanup_queue(dev->queue); dev->queue = NULL; out_alloc_queue: - return -EIO; + return -ENOMEM; } static int __init simdisk_init(void) |