]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Remove possible null dereference
authorTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 6 Feb 2020 09:20:08 +0000 (01:20 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 12 Feb 2020 19:48:51 +0000 (11:48 -0800)
commit4bf4035e27c8cc4ae1611eebcd969f1c3bc708ae
tree59dff15dbb7302117548262e31a1b336cd07797a
parent2e5d22d52836ed6ff070192926c4123b15529750
ice: Remove possible null dereference

Commit dc60d761bbf6 ("ice: add extra check for null Rx descriptor") moved
the call to ice_construct_skb() under a null check as Coverity reported a
possible use of null skb. However, the original call was not deleted, do so
now.

Fixes: dc60d761bbf6 ("ice: add extra check for null Rx descriptor")
Reported-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_txrx.c