[DRIVERS] pass2: Fix various minor issues in DRIVERS code.

Coverity scan has detected several problems in Xvisor code.
This patche fixe some of the problems related to the drivers code.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>