Tomas Winkler de8774371c mei: check for error returned from mei_hbuf_empty_slots()
mei_hbuf_empty_slots() may return with an error in case
of circular buffer overflow. This type of error may
be caused only by a bug. However currently, the error
won't be detected due signed type promotion in comparison to u32.
We add explicit check for less then zero and explicit cast
in comparison to suppress singn-compare warning.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-12 16:23:19 +02:00
..
2017-04-08 17:38:25 +02:00
2017-04-08 17:38:25 +02:00
2014-05-03 19:21:22 -04:00
2018-03-14 19:33:13 +01:00
2018-07-12 15:44:57 +02:00
2018-07-03 13:11:20 +02:00
2017-11-13 01:41:26 +01:00