Yuanhan Liu
71dc571efd
vhost: fix error handling in destroy
Fix following coverity defect:
291 void
292 vhost_destroy_device(struct vhost_device_ctx ctx)
293 {
294 struct virtio_net *dev = get_device(ctx);
295
>>> CID 124565: Null pointer dereferences (NULL_RETURNS)
>>> Dereferencing a null pointer "dev".
Fixes: 45ca9c6f7bc6 ("vhost: get rid of linked list for devices")
Reported-by: John McNamara <john.mcnamara@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-04-06 12:27:57 +02:00
..
2015-11-24 21:34:11 +01:00
2015-09-24 14:57:36 +02:00
2016-02-19 19:33:31 +01:00
2016-03-15 00:20:29 +01:00
2016-03-13 20:27:26 +01:00
2015-06-30 17:49:08 +02:00
2016-03-15 00:20:29 +01:00
2016-03-31 17:09:23 +02:00
2016-02-19 19:33:31 +01:00
2016-04-06 12:27:57 +02:00
2015-02-24 01:38:14 +01:00