diff options
author | 2021-12-28 10:20:47 +0200 | |
---|---|---|
committer | 2021-12-30 14:12:16 +0100 | |
commit | 6b0b80ac103b2a40c72a47c301745fd1f4ef4697 (patch) | |
tree | 8f953e5d8dd3cb2dc82f680af97b3cd05a7170c0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | misc: lattice-ecp3-config: Fix task hung when firmware load failed (diff) | |
download | wireguard-linux-6b0b80ac103b2a40c72a47c301745fd1f4ef4697.tar.xz wireguard-linux-6b0b80ac103b2a40c72a47c301745fd1f4ef4697.zip |
mei: hbm: fix client dma reply status
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.")
Cc: <stable@vger.kernel.org> # v5.11+
Reported-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Tested-by: : Emmanuel Grumbach <emmanuel.grumbach@intel.com>
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>
Link: https://lore.kernel.org/r/20211228082047.378115-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions