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

Markus Elfring
2024-07-11T06:00:48Z

> 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