Colin Ian King dcd1d8302a drm/i915/gvt: ensure -ve return value is handled correctly
An earlier fix changed the return type from find_bb_size however the
integer return is being assigned to a unsigned int so the -ve error
check will never be detected. Make bb_size an int to fix this.

Detected by CoverityScan CID#1456886 ("Unsigned compared against 0")

Fixes: 1e3197d6ad73 ("drm/i915/gvt: Refine error handling for perform_bb_shadow")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
(cherry picked from commit 24f8a29af4afe7c53e08f4afa0c3fa9eb3791b89)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2017-11-21 11:39:43 +02:00
..
2017-09-02 14:23:06 +02:00
2017-08-27 19:29:46 +02:00
2017-11-02 12:40:41 +10:00
2017-10-16 11:29:05 +02:00
2017-10-01 17:01:39 +02:00
2017-11-02 12:40:41 +10:00
2017-09-25 08:35:53 +02:00
2017-08-27 19:30:49 +02:00
2017-10-17 10:13:47 +10:00
2017-10-16 11:29:28 +02:00
2017-08-27 19:31:06 +02:00
2017-10-25 16:31:29 +10:00