Alexander Usyskin 5ba0bf476c mei: amthif: don't copy from an empty buffer
If empty message come from FW (buf_idx == 0) then the current code will
still try to copy data from not filled buffer to the user-space,
instead the code should behave the same as when end of a message
has been reached, clean resources and return 0

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>
2016-02-07 14:47:20 -08:00
..
2015-10-17 21:45:05 -07:00
2016-02-07 13:00:52 -08:00
2015-08-03 17:33:54 -07:00
2014-05-03 19:21:22 -04:00
2016-02-07 13:00:52 -08:00
2014-09-29 11:56:02 -04:00