OpenCloudOS-Kernel/drivers/misc/mei
Alexander Usyskin 34ec43661f mei: ignore client writing state during cb completion
Ignore client writing state during cb completion to fix a memory
leak.

When moving cbs to the completion list we should not look at
writing_state as this state can be already overwritten by next
write, the fact that a cb is on the write waiting list means
that it was already written to the HW and we can safely complete it.

Same pays for wait in poll handler, we do not have to check the state
wake is done after completion list processing.

Cc: stable@vger.kernel.org
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-16 12:24:16 -07:00
..
Kconfig mei: fix compilation error with missing WATCHDOG_CORE 2014-02-14 10:13:46 -08:00
Makefile mei: txe: add Kbuild for TXE device 2014-02-07 15:08:46 -08:00
amthif.c mei: amthif: fix checkpatch error 2014-03-17 15:59:34 -07:00
bus.c mei: make me hw headers private to me hw. 2014-03-17 15:53:27 -07:00
client.c mei: fix memory leak of pending write cb objects 2014-03-17 15:52:06 -07:00
client.h mei: client.h fix checkpatch errors 2014-03-17 15:57:43 -07:00
debugfs.c mei: export active connections to debugfs 2014-02-07 15:09:35 -08:00
hbm.c mei: use cl_dbg where appropriate 2014-03-17 15:57:43 -07:00
hbm.h mei: get rid of ext_msg 2014-02-14 11:12:46 -08:00
hw-me-regs.h mei: me: do not load the driver if the FW doesn't support MEI interface 2014-04-16 12:24:16 -07:00
hw-me.c mei: make me hw headers private to me hw. 2014-03-17 15:53:27 -07:00
hw-me.h mei: Add include of <linux/irqreturn.h> 2014-02-19 11:27:02 -07:00
hw-txe-regs.h mei: txe: add hw-txe-regs.h header file 2014-02-07 15:08:46 -08:00
hw-txe.c mei: revamp writing slot counting 2014-02-28 15:15:57 -08:00
hw-txe.h mei: revamp writing slot counting 2014-02-28 15:15:57 -08:00
hw.h mei: hbm: revamp client connect and disconnection status 2014-02-18 10:05:07 -08:00
init.c mei: Remove all bus devices from the mei_dev list when stopping the MEI 2014-02-18 10:04:35 -08:00
interrupt.c mei: ignore client writing state during cb completion 2014-04-16 12:24:16 -07:00
main.c mei: ignore client writing state during cb completion 2014-04-16 12:24:16 -07:00
mei_dev.h mei: fix Unnecessary space after function pointer name 2014-03-17 15:57:43 -07:00
nfc.c mei: make return values consistent across the driver 2014-02-28 15:15:57 -08:00
pci-me.c mei: me: do not load the driver if the FW doesn't support MEI interface 2014-04-16 12:24:16 -07:00
pci-txe.c mei: don't use deprecated DEFINE_PCI_DEVICE_TABLE macro 2014-03-17 15:59:34 -07:00
wd.c mei: make me hw headers private to me hw. 2014-03-17 15:53:27 -07:00