[PATCH 3/3] module: use ZERO_OR_NULL_PTR allocation pointer checking