Commit c65f9036 authored by Jens Axboe's avatar Jens Axboe Committed by sanglipeng
Browse files

brd: return 0/-error from brd_insert_page()

stable inclusion
from stable-v5.10.173
commit c1aa96927b242acfd25457b73cf9d175b58ede7a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c1aa96927b242acfd25457b73cf9d175b58ede7a



--------------------------------

commit db0ccc44 upstream.

It currently returns a page, but callers just check for NULL/page to
gauge success. Clean this up and return the appropriate error directly
instead.

Cc: stable@vger.kernel.org # 5.10+
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 7d67b681
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment