Re: [fs/bfs 1/2] bfs: fix null-ptr-deref in bfs_move_block

From: Markus Elfring
Date: Thu Jul 11 2024 - 02:00:59 EST


> Add a check to ensure that a sb_getblk() call did not return NULL before copying data.

How do you think about another refinement for such a change description?

Detect a failed sb_getblk() call (before copying data)
so that null pointer dereferences should not happen any more.


Regards,
Markus