]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Fix position of assignment to *ring
authorJedrzej Jagielski <jedrzej.jagielski@intel.com>
Fri, 11 Jun 2021 22:42:17 +0000 (22:42 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 1 Jul 2021 17:59:21 +0000 (10:59 -0700)
commit098a0557c09b2b5ab715e0c9bb69c2abefc96976
tree0df57e28f16604658ebe8c6293e64de2bc1f835d
parent25587a0cfeefc2878b3d05a9c021d3803a18c74c
igb: Fix position of assignment to *ring

Assignment to *ring should be done after correctness check of the
argument queue.

Fixes: 17be50cfd261 ("igb: Refactor igb_configure_cbs()")
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c