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
..
2016-02-10 15:47:50 +01:00
2016-02-29 11:28:31 +01:00
2016-03-09 16:13:14 +01:00
2015-06-29 16:41:23 +02:00
2016-03-31 22:24:21 +02:00
2015-05-11 15:36:37 +02:00
2016-04-01 23:52:18 +02:00
2016-04-06 12:27:57 +02:00
2016-04-01 18:56:27 +02:00
2016-02-10 15:47:50 +01:00
2016-04-01 15:36:32 +02:00
2016-02-29 11:22:53 +01:00
2016-01-28 18:40:46 +01:00
2016-01-27 15:34:48 +01:00
2016-03-31 21:31:55 +02:00
2016-03-13 11:52:52 +01:00
2016-02-19 16:17:45 +01:00
2016-03-22 20:42:47 +01:00
2015-11-25 22:11:37 +01:00
2016-03-10 01:29:42 +01:00
2016-04-01 23:08:25 +02:00
2016-02-10 22:43:38 +01:00
2015-06-22 22:20:12 +02:00
2016-03-22 17:55:16 +01:00
2016-03-13 23:31:59 +01:00
2016-03-09 23:05:05 +01:00
2015-08-03 12:43:01 +02:00
2016-04-06 12:27:57 +02:00
2016-03-10 21:08:28 +01:00