forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: ethernet: fix NULL dereference in nixge_recv()
In function nixge_recv() dereference of NULL pointer priv->rx_bd_v is possible for the case of its allocation failure in netdev_priv(ndev). Move while() loop with priv->rx_bd_v dereference under the check for its validity. Cc: [email protected] Fixes: 492caff ("net: ethernet: nixge: Add support for National Instruments XGE netdev") Signed-off-by: Ma Ke <[email protected]> Signed-off-by: NipaLocal <nipa@local>
- Loading branch information
Ma Ke
authored and
NipaLocal
committed
Dec 11, 2024
1 parent
8a259b2
commit b94d7fc
Showing
1 changed file
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters