Re: drivers/net/ethernet/nvidia/forcedeth.c saved_config_space[size] access patch

2013-09-11 Thread Sergei Shtylyov
Hello. On 09/09/2013 03:39 AM, Marc Weber wrote: 1) VER3 and _MAX are of same size: #define NV_PCI_REGSZ_VER3 0x604 #define NV_PCI_REGSZ_MAX0x604 2) It looks like there is a case where VER3 get's assigned to register_size: if (id->driver_data & (DE

drivers/net/ethernet/nvidia/forcedeth.c saved_config_space[size] access patch

2013-09-08 Thread Marc Weber
1) VER3 and _MAX are of same size: #define NV_PCI_REGSZ_VER3 0x604 #define NV_PCI_REGSZ_MAX0x604 2) It looks like there is a case where VER3 get's assigned to register_size: if (id->driver_data & (DEV_HAS_VLAN|DEV_HAS_MSI_X|DEV_HAS_POWER_CNTRL|DEV_HAS_STATISTICS_