mei: cleanup status before client dma setup call
authorAlexander Usyskin <alexander.usyskin@intel.com>
Thu, 23 Dec 2021 09:47:05 +0000 (11:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Dec 2021 09:30:48 +0000 (10:30 +0100)
commit43aa323e315bec40779fe2899f7b531773d7b733
tree7508dad1845a3f402d3def6e5d7e7764dcd2e0f0
parent38be5687da839bfcafeabb34a5a21e8396613ce3
mei: cleanup status before client dma setup call

The upper layer may retry call to mei_cl_dma_alloc_and_map(),
in that case the client status may be non-zero after the previous call
and the wait condition will be true immediately.
Set cl->status to zero to allow waiting for an actual result
from the firmware.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20211223094705.204624-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/client.c