Jason Wang
c546ecf27d
virtio-net: check the existence of peer before accessing vDPA config
...
We try to check whether a peer is VDPA in order to get config from
there - with no peer, this leads to a NULL
pointer dereference. Add a check before trying to access the peer
type. No peer means not VDPA.
Fixes: 108a64818e69b ("vhost-vdpa: introduce vhost-vdpa backend")
Cc: Cindy Lu <lulu@redhat.com>
Tested-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2020-07-28 16:57:58 +08:00
..
2020-05-15 07:07:58 +02:00
2020-06-15 22:05:28 +02:00
2020-02-18 20:20:49 +01:00
2020-03-31 21:14:35 +08:00
2020-03-31 21:14:35 +08:00
2020-06-18 21:05:52 +08:00
2020-03-31 21:14:35 +08:00
2017-09-08 08:17:37 +08:00
2020-05-15 07:08:14 +02:00
2020-06-18 21:05:52 +08:00
2020-03-31 21:14:35 +08:00
2020-05-15 07:08:14 +02:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:20:21 +02:00
2020-05-15 07:08:14 +02:00
2020-06-15 22:05:28 +02:00
2020-07-15 21:00:13 +08:00
2020-03-31 21:14:35 +08:00
2020-03-31 21:14:35 +08:00
2020-07-03 16:59:41 +01:00
2020-03-12 16:27:33 +00:00
2020-06-15 22:05:28 +02:00
2020-05-15 07:08:14 +02:00
2020-06-15 22:05:28 +02:00
2020-06-18 21:05:50 +08:00
2020-05-30 09:17:46 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-04-30 11:52:28 +01:00
2020-07-10 15:18:08 +02:00
2020-05-15 07:08:14 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2020-03-03 18:04:47 +08:00
2020-03-03 18:04:47 +08:00
2020-07-21 21:30:39 +08:00
2020-07-21 21:30:39 +08:00
2020-03-31 21:14:35 +08:00
2020-05-15 07:08:14 +02:00
2019-08-16 13:31:53 +02:00
2020-01-07 17:24:29 +04:00
2020-05-15 07:08:14 +02:00
2020-06-15 22:05:28 +02:00
2020-06-15 22:00:10 +02:00
2020-01-24 20:59:15 +01:00
2020-05-15 07:08:14 +02:00
2020-05-15 07:08:14 +02:00
2020-07-03 16:59:41 +01:00
2020-06-18 21:05:51 +08:00
2020-06-18 21:05:51 +08:00
2020-07-03 07:57:04 -04:00
2020-07-07 07:59:51 -04:00
2020-07-28 16:57:58 +08:00
2017-11-20 11:08:00 +08:00
2019-06-12 13:20:21 +02:00
2020-05-15 07:08:14 +02:00
2017-11-20 11:08:00 +08:00
2016-07-12 16:20:46 +02:00
2019-08-16 13:31:52 +02:00
2020-07-21 21:30:39 +08:00
2020-07-10 15:18:08 +02:00
2020-03-31 21:14:35 +08:00