device: Fix device from handle function

This function was returning NULL for the last handle because of a
wrong comparison.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
1 file changed