Marcin Kerlin b497724652 vhost: fix null pointer dereference
Return value of function get_device() is not checking before
dereference. Fix this problem by adding checking condition.

Coverity issue: 119262

Fixes: 77d20126b4c2 ("vhost-user: handle message to enable vring")

Signed-off-by: Marcin Kerlin <marcinx.kerlin@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-06-22 09:47:12 +02:00
..
2016-06-07 10:02:39 +02:00
2016-06-21 17:50:22 +02:00
2016-06-16 23:38:52 +02:00
2016-06-21 18:05:45 +02:00
2016-05-16 14:17:41 +02:00
2016-06-14 17:24:15 +02:00
2015-08-03 12:43:01 +02:00