vfio: fix crash on rmmod
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 5 Jun 2013 14:54:16 +0000 (08:54 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 5 Jun 2013 14:54:16 +0000 (08:54 -0600)
commit9a6aa279d3d17af73a029fa40654e92f4e75e8bb
tree25e81385f50cb6f4b2984d30522683d8a049c622
parentd683b96b072dc4680fc74964eca77e6a23d1fa6e
vfio: fix crash on rmmod

devtmpfs_delete_node() calls devnode() callback with mode==NULL but
vfio still tries to write there.

The patch fixes this.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c