diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2022-12-12 23:02:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-20 13:21:48 +0100 |
commit | a43866856125c3c432e2fbb6cc63cee1539ec4a7 (patch) | |
tree | 509c37fdcbb5161e25ee00088cf3726d5c9e177a /include/scsi | |
parent | Merge tag 'icc-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/djak... (diff) | |
download | linux-a43866856125c3c432e2fbb6cc63cee1539ec4a7.tar.xz linux-a43866856125c3c432e2fbb6cc63cee1539ec4a7.zip |
mei: bus: fix unlink on bus in error path
Unconditional call to mei_cl_unlink in mei_cl_bus_dev_release leads
to call of the mei_cl_unlink without corresponding mei_cl_link.
This leads to miscalculation of open_handle_count (decrease without
increase).
Call unlink in mei_cldev_enable fail path and remove blanket unlink
from mei_cl_bus_dev_release.
Fixes: 34f1166afd67 ("mei: bus: need to unlink client before freeing")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Reviewed-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20221212220247.286019-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions