Skip to content

Commit fd58015

Browse files
Chengguang Xujcmvbkbc
authored andcommitted
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>
1 parent fb1b79d commit fd58015

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/xtensa/platforms/iss/simdisk.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static int __init simdisk_setup(struct simdisk *dev, int which,
297297
blk_cleanup_queue(dev->queue);
298298
dev->queue = NULL;
299299
out_alloc_queue:
300-
return -EIO;
300+
return -ENOMEM;
301301
}
302302

303303
static int __init simdisk_init(void)

0 commit comments

Comments
 (0)