Skip to content

Commit

Permalink
xtensa: set proper error code for simdisk_setup()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chengguang Xu authored and Max Filippov committed May 6, 2019
1 parent fb1b79d commit fd58015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/platforms/iss/simdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd58015

Please sign in to comment.