vfio/pci: Avoid a null pointer dereference in vfio_config_free()
Subsystems (2)
Quoted 3 lines
It is possible
vfio_config_init()does not callvfio_cap_len(), and thenvdev->msi_perm= NULL. Later, invfio_config_free(), it could trigger a null-ptr-deref.
I suggest to add an imperative wording to the commit message.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id1143e1602d90ea71887d92363edd539d411de5#n151
Regards,
Markus