Re: [PATCH] fs: xfs: fix possible NULL pointer dereference in xfs_rw_bdev()
From: Christoph Hellwig
Date: Mon Apr 11 2022 - 10:55:48 EST
On Mon, Apr 11, 2022 at 07:31:45PM +0800, Zixuan Fu wrote:
> In our fault-injection testing, bio_alloc() may fail with low memory and
> return NULL.
Well, in that case your fault injection seems to be completely broken.
Please take a closer look at how bio_alloc is implemented and
documented.