RE: [char-misc-next] mei: hbm: fix client dma reply status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> From: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
> 
> 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@xxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> # v5.11+
> Acked-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> Signed-off-by: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
> Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> 

Tested-by: : Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux