Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chengguang Xu and committed by
Max Filippov
fd58015c fb1b79d8

+1 -1
+1 -1
arch/xtensa/platforms/iss/simdisk.c
··· 297 297 blk_cleanup_queue(dev->queue); 298 298 dev->queue = NULL; 299 299 out_alloc_queue: 300 - return -EIO; 300 + return -ENOMEM; 301 301 } 302 302 303 303 static int __init simdisk_init(void)