md: fix a crash in mempool_free
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.10.163 by commit ae7793027766491c5f8635b12d15a5940d3b8698. For more details please see the references link.