-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libxdp: Use IS_ERR_OR_NULL() for NULL checks on passed-in pointers
Most of the libxdp APIs check if the argument passed in as the main object is NULL before dereferencing it. However, the NULL checks should really use IS_ERR_OR_NULL() as the APIs construction those objects can return error pointers. Otherwise we'll still crash if a user accidentally passes in such an error pointer. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
- Loading branch information
Showing
1 changed file
with
40 additions
and
37 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