mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
ice: Remove possible null dereference
Commit1f45ebe0d8
("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:1f45ebe0d8
("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>
This commit is contained in:
parent
cf8fc2a086
commit
0a6ea04e3b
@ -1078,8 +1078,6 @@ construct_skb:
|
||||
skb = ice_build_skb(rx_ring, rx_buf, &xdp);
|
||||
else
|
||||
skb = ice_construct_skb(rx_ring, rx_buf, &xdp);
|
||||
} else {
|
||||
skb = ice_construct_skb(rx_ring, rx_buf, &xdp);
|
||||
}
|
||||
/* exit if we failed to retrieve a buffer */
|
||||
if (!skb) {
|
||||
|
Loading…
Reference in New Issue
Block a user