mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-01 08:34:21 +00:00
9256b25130
If reg_phys_mem() fails, we need to free memory allocated for MPA frame with private data before returning the error. Also move nes_add_ref() after the reg_phys_mem() is successful. Signed-off-by: Faisal Latif <faisal.latif@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>