
When we try to unregister a module that was not registered earlier, we will try to unmap the buffers that were not allocated. As a result, we end up with invalid memory access. Fix this issue by checking if the module was registered before unregistering it. Change-Id: I97c4ee7a6690c6cba2a7d1a919a39fcb12ebb692 CRs-Fixed: 3179498