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

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: default avatarChengguang Xu <cgxu519@gmail.com>
Message-Id: <1557066367-4783-2-git-send-email-cgxu519@gmail.com>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent fb1b79d8
......@@ -297,7 +297,7 @@ static int __init simdisk_setup(struct simdisk *dev, int which,
blk_cleanup_queue(dev->queue);
dev->queue = NULL;
out_alloc_queue:
return -EIO;
return -ENOMEM;
}
static int __init simdisk_init(void)
......
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