nvethernet:Fix crash issue when driver is reloaded

Issue: Kernel crash is seen when nvethernet driver is reloaded

Fix: Remove the "readonly after init" attribute for MACSEC ops
structure.

Bug 3560071

Change-Id: I973135c5090d55d40087b30dc59ae77b1bae5e5a
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2677537
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Mahesh Patil <maheshp@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sanath Kumar Gampa
2022-03-07 17:57:58 +05:30
committed by Revanth Kumar Uppala
parent 047a2bf968
commit 36d76518df

View File

@@ -1398,7 +1398,7 @@ static const struct genl_ops nv_macsec_genl_ops[] = {
},
};
static struct genl_family nv_macsec_fam __ro_after_init = {
static struct genl_family nv_macsec_fam = {
.name = NV_MACSEC_GENL_NAME,
.hdrsize = 0,
.version = NV_MACSEC_GENL_VERSION,