diff options
author | David Awogbemila <awogbemila@google.com> | 2021-05-18 00:08:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-18 01:38:40 +0300 |
commit | 5218e919c8d06279884aa0baf76778a6817d5b93 (patch) | |
tree | 0dafc60fe20fd26cceb19f60731471462aae9114 /drivers/vfio | |
parent | e96b491a0ffa35a8a9607c193fa4d894ca9fb32f (diff) | |
download | linux-5218e919c8d06279884aa0baf76778a6817d5b93.tar.xz |
gve: Add NULL pointer checks when freeing irqs.
When freeing notification blocks, we index priv->msix_vectors.
If we failed to allocate priv->msix_vectors (see abort_with_msix_vectors)
this could lead to a NULL pointer dereference if the driver is unloaded.
Fixes: 893ce44df565 ("gve: Add basic driver framework for Compute Engine Virtual NIC")
Signed-off-by: David Awogbemila <awogbemila@google.com>
Acked-by: Willem de Brujin <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions