提交 fd58015c 编写于 作者: C Chengguang Xu 提交者: 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: NChengguang Xu <cgxu519@gmail.com>
Message-Id: <1557066367-4783-2-git-send-email-cgxu519@gmail.com>
Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册