]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix NULL pointer dereference in i40e_dbg_dump_desc
authorNorbert Zulinski <norbertx.zulinski@intel.com>
Mon, 22 Nov 2021 11:29:05 +0000 (12:29 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 6 Dec 2021 17:44:56 +0000 (09:44 -0800)
commit6430e39d6416f64bf0fd46fe804754cc1023a251
tree3d03547ea30bcf9468055d4e6b8e54a57d8afa4c
parent0e33c4464fb815362056872f6c6ef8bb3726033e
i40e: Fix NULL pointer dereference in i40e_dbg_dump_desc

When trying to dump VFs VSI RX/TX descriptors
using debugfs there was a crash
due to NULL pointer dereference in i40e_dbg_dump_desc.
Added a check to i40e_dbg_dump_desc that checks if
VSI type is correct for dumping RX/TX descriptors.

Fixes: b39ae045ad57 ("i40e: debugfs interface")
Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Signed-off-by: Norbert Zulinski <norbertx.zulinski@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c