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 v4.9.337 by commit 732cd66ec19a17f2b9183d7d5b7bdb9c39b0776e. For more details please see the references link.