]> git.baikalelectronics.ru Git - kernel.git/commit
brd: return 0/-error from brd_insert_page()
authorJens Axboe <axboe@kernel.dk>
Thu, 16 Feb 2023 14:57:32 +0000 (07:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:15 +0000 (09:34 +0100)
commit32ab7f166a8da339c613112b9013a46a79191169
treeb33e5378db1f49cae3cd25272487c910b1f280e2
parented69eb0fc7a3cb69ea9c38b53e86baca3df2d270
brd: return 0/-error from brd_insert_page()

commit efffcb92fe72442225855d508d5b2df47fba711a 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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/brd.c