From: Alexander Usyskin alexander.usyskin@intel.com
Don't blindly copy status value received from the firmware into internal client status field, It may be positive and ERR_PTR(ret) will translate it into an invalid address and the caller will crash.
Put the error code into the client status on failure.
Fixes: 369aea845951 ("mei: implement client dma setup.") Reported-by: Emmanuel Grumbach emmanuel.grumbach@intel.com Cc: stable@vger.kernel.org # v5.11+ Acked-by: Tomas Winkler tomas.winkler@intel.com Signed-off-by: Alexander Usyskin alexander.usyskin@intel.com Signed-off-by: Tomas Winkler tomas.winkler@intel.com
Tested-by: : Emmanuel Grumbach emmanuel.grumbach@intel.com