]> git.baikalelectronics.ru Git - kernel.git/commit
mei: free read cb on ctrl_wr list flush
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 30 Jan 2019 08:12:26 +0000 (10:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2019 14:24:45 +0000 (15:24 +0100)
commitabfbd962b9061abde58e6b793e8606cb61b71fc6
treeaa13bf9f16f1621a4cda3ead872d73a143c32c68
parent8067483cea77b3c1ec03470a4fe96c32d5b58939
mei: free read cb on ctrl_wr list flush

There is a little window during disconnection flow
when read cb is moved between lists and may be not freed.
Remove moving read cbs explicitly during flash fixes this memory
leak.

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>
drivers/misc/mei/client.c