From 36d76518dfbecd46208f8efedceb550ffe1e6dd1 Mon Sep 17 00:00:00 2001 From: Sanath Kumar Gampa Date: Mon, 7 Mar 2022 17:57:58 +0530 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2677537 Reviewed-by: svcacv Reviewed-by: svc_kernel_abi Reviewed-by: Om Prakash Singh Reviewed-by: Mahesh Patil Reviewed-by: Bhadram Varka Reviewed-by: Ashutosh Jha GVS: Gerrit_Virtual_Submit --- drivers/net/ethernet/nvidia/nvethernet/macsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/nvidia/nvethernet/macsec.c b/drivers/net/ethernet/nvidia/nvethernet/macsec.c index a50b8eb2..4d76c5a5 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/macsec.c +++ b/drivers/net/ethernet/nvidia/nvethernet/macsec.c @@ -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,