lkml.org 
[lkml]   [2021]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [char-misc-next] mei: hbm: fix client dma reply status
Date
> 
> 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>

\
 
 \ /
  Last update: 2021-12-29 17:10    [W:0.034 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site