misc: mods: update MODS kernel driver to 4.1

Change-Id: I56377b85ff0909dba419c8e3f6df16c9302d6dc5
Signed-off-by: Chris Dragan <kdragan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2456573
Reviewed-by: svcguardwords <svcguardwords@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Chris Dragan
2020-12-08 01:45:00 -08:00
committed by Laxman Dewangan
parent 125e88df0a
commit a51241efac
6 changed files with 153 additions and 28 deletions

View File

@@ -127,7 +127,7 @@ void mods_disable_device(struct mods_client *client,
WARN_ON(!mutex_is_locked(&mp.mtx));
#ifdef MODS_HAS_SRIOV
if (dpriv->num_vfs)
if (dpriv && dpriv->num_vfs)
pci_disable_sriov(dev);
#endif